diff options
Diffstat (limited to 'src/ircd.c')
-rw-r--r-- | src/ircd.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/ircd.c b/src/ircd.c index 771c9a194..14bdd79e2 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_kick = NULL; ircdproto.ircd_cmd_notice_ops = NULL; ircdproto.ircd_cmd_notice = NULL; ircdproto.ircd_cmd_notice2 = NULL; @@ -215,15 +214,14 @@ void anope_cmd_bot_nick(const char *nick, const char *user, const char *host, co void anope_cmd_kick(const char *source, const char *chan, const char *user, 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_kick(source, chan, user, buf); + va_list args; + char buf[BUFSIZE] = ""; + if (fmt) { + va_start(args, fmt); + vsnprintf(buf, BUFSIZE - 1, fmt, args); + va_end(args); + } + ircdprotonew->cmd_kick(source, chan, user, buf); } void anope_cmd_notice_ops(const char *source, const char *dest, const char *fmt, ...) @@ -697,12 +695,6 @@ void pmodule_cmd_376(void (*func) (const char *source)) ircdproto.ircd_cmd_376 = func; } -void pmodule_cmd_kick(void (*func) - (const char *source, const char *chan, const char *user, const char *buf)) -{ - ircdproto.ircd_cmd_kick = func; -} - void pmodule_cmd_notice_ops(void (*func) (const char *source, const char *dest, const char *buf)) { |