diff options
Diffstat (limited to 'src/ircd.c')
-rw-r--r-- | src/ircd.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/ircd.c b/src/ircd.c index 91ec0d474..fc41c1905 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -50,7 +50,6 @@ void initIrcdProto() ircdproto.ircd_cmd_372_error = NULL; ircdproto.ircd_cmd_375 = NULL; ircdproto.ircd_cmd_376 = NULL; - ircdproto.ircd_cmd_notice = NULL; ircdproto.ircd_cmd_notice2 = NULL; ircdproto.ircd_cmd_serv_notice = NULL; ircdproto.ircd_cmd_serv_privmsg = NULL; @@ -234,17 +233,16 @@ void anope_cmd_notice_ops(const char *source, const char *dest, const char *fmt, ircdprotonew->cmd_notice_ops(source, dest, buf); } -void anope_cmd_notice(const char *source, const char *dest, const char *fmt, ...) +void anope_cmd_message(const char *source, const char *dest, const char *fmt, ...) { - va_list args; - char buf[BUFSIZE]; - *buf = '\0'; - if (fmt) { - va_start(args, fmt); - vsnprintf(buf, BUFSIZE - 1, fmt, args); - va_end(args); - } - ircdproto.ircd_cmd_notice(source, dest, buf); + va_list args; + char buf[BUFSIZE] = ""; + if (fmt) { + va_start(args, fmt); + vsnprintf(buf, BUFSIZE - 1, fmt, args); + va_end(args); + } + ircdprotonew->cmd_message(source, dest, buf); } void anope_cmd_notice2(const char *source, const char *dest, const char *msg) @@ -664,11 +662,6 @@ void pmodule_cmd_376(void (*func) (const char *source)) ircdproto.ircd_cmd_376 = func; } -void pmodule_cmd_notice(void (*func) (const char *source, const char *dest, const char *buf)) -{ - ircdproto.ircd_cmd_notice = func; -} - void pmodule_cmd_notice2(void (*func) (const char *source, const char *dest, const char *msg)) { |