]> jfr.im git - irc/quakenet/newserv.git/commitdiff
SETQUITREASON had the wrong handler.
authorsplidge <redacted>
Tue, 25 Mar 2008 02:17:03 +0000 (02:17 +0000)
committersplidge <redacted>
Tue, 25 Mar 2008 02:17:03 +0000 (02:17 +0000)
chanserv/chanserv.c

index a4d05fba7e06588f7113d46ddf63b5912d15c64b..1ed71168d8f76ee6330d6127692143b9b53e6304 100644 (file)
@@ -116,7 +116,7 @@ void _init() {
     chanservcommandinit();
     chanservaddcommand("showcommands", 0, 1, cs_doshowcommands, "Lists available commands.","Usage: SHOWCOMMANDS [<mask>]\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);