1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 15:23:12 +02:00

Move can_send() function from core to m_message.

This commit is contained in:
Bram Matthys
2019-06-22 16:03:06 +02:00
parent bf4d96e991
commit 05202dd2a4
5 changed files with 99 additions and 96 deletions
+3 -1
View File
@@ -143,6 +143,7 @@ void (*parse_message_tags)(aClient *cptr, char **str, MessageTag **mtag_list);
extern void parse_message_tags_default_handler(aClient *cptr, char **str, MessageTag **mtag_list);
char *(*mtags_to_string)(MessageTag *m, aClient *acptr);
extern char *mtags_to_string_default_handler(MessageTag *m, aClient *acptr);
int (*can_send)(aClient *cptr, aChannel *chptr, char **msgtext, char **errmsg, int notice);
static const EfunctionsList efunction_table[MAXEFUNCTIONS] = {
/* 00 */ {NULL, NULL, NULL},
@@ -210,7 +211,8 @@ static const EfunctionsList efunction_table[MAXEFUNCTIONS] = {
/* 62 */ {"mtags_to_string", (void *)&mtags_to_string, &mtags_to_string_default_handler},
/* 63 */ {"tkl_chartotype", (void *)&tkl_chartotype, NULL},
/* 64 */ {"tkl_type_string", (void *)&tkl_type_string, NULL},
/* 65 */ {NULL, NULL, NULL},
/* 65 */ {"can_send", (void *)&can_send, NULL},
/* 66 */ {NULL, NULL, NULL},
};
#ifdef UNDERSCORE