From: splidge Date: Tue, 25 Mar 2008 02:17:03 +0000 (+0000) Subject: SETQUITREASON had the wrong handler. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/f22ae726f22a51a074d463de5beb4d6f870358cf SETQUITREASON had the wrong handler. --- diff --git a/chanserv/chanserv.c b/chanserv/chanserv.c index a4d05fba..1ed71168 100644 --- a/chanserv/chanserv.c +++ b/chanserv/chanserv.c @@ -116,7 +116,7 @@ void _init() { chanservcommandinit(); chanservaddcommand("showcommands", 0, 1, cs_doshowcommands, "Lists available commands.","Usage: SHOWCOMMANDS []\nPrints a list of commands currently available to you, where:\nmask - Mask of commands to list (* or ? are wildcards). If no mask is specified,\n all available commands are displayed."); chanservaddcommand("quit", QCMD_DEV, 1, cs_doquit, "Makes the bot QUIT and \"reconnect\".",""); - chanservaddcommand("setquitreason", QCMD_DEV, 1, cs_doquit, "Sets the reason to be sent when quitting due to an unload.",""); + chanservaddcommand("setquitreason", QCMD_DEV, 1, cs_dosetquitreason, "Sets the reason to be sent when quitting due to an unload.",""); chanservaddcommand("rename", QCMD_DEV, 1, cs_dorename, "Changes the bot's name.",""); chanservaddcommand("rehash", QCMD_DEV, 0, cs_dorehash, "Reloads all text from database.",""); /* Make "HELP" take 2 arguments so things like "HELP chanflags #channel" work. Any junk after the command will go into arg 2 and be ignored. */ @@ -227,6 +227,7 @@ void _fini() { chanservremovecommand("showcommands", cs_doshowcommands); chanservremovecommand("quit", cs_doquit); + chanservremovecommand("setquitreason", cs_dosetquitreason); chanservremovecommand("rename", cs_dorename); chanservremovecommand("rehash", cs_dorehash); chanservremovecommand("help", cs_dohelp);