From 79f09ed15791a532eb8d2211f7b126f4bcdff7c1 Mon Sep 17 00:00:00 2001 From: rburchell Date: Tue, 10 Feb 2009 21:16:20 +0000 Subject: Various fixes. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1988 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_chankill.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/core/os_chankill.c') diff --git a/src/core/os_chankill.c b/src/core/os_chankill.c index ce2f3b7b0..1c0a8372c 100644 --- a/src/core/os_chankill.c +++ b/src/core/os_chankill.c @@ -29,7 +29,6 @@ class CommandOSChanKill : public Command const char *expiry, *channel; char reason[BUFSIZE]; time_t expires; - char breason[BUFSIZE]; char mask[USERMAX + HOSTMAX + 2]; struct c_userlist *cu, *next; int last_param = 1; @@ -61,7 +60,7 @@ class CommandOSChanKill : public Command this->OnSyntaxError(u); return MOD_CONT; } - snprintf(reason, sizeof(reason), "%s%s%s", params[last_param].c_str(), last_param == 1 ? " " : "", last_param == 1 ? param[2].c_str() : ""); + snprintf(reason, sizeof(reason), "%s%s%s", params[last_param].c_str(), last_param == 1 ? " " : "", last_param == 1 ? params[2].c_str() : ""); if (*reason) { @@ -88,6 +87,11 @@ class CommandOSChanKill : public Command } return MOD_CONT; } + + void OnSyntaxError(User *u) + { + syntax_error(s_OperServ, u, "CHANKILL", OPER_CHANKILL_SYNTAX); + } }; class OSChanKill : public Module -- cgit