diff options
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r-- | src/modules/m_cban.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 21a3533ec..ff8e3af54 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -59,7 +59,7 @@ class cmd_cban : public command_t syntax = "<channel> [<duration> :<reason>]"; } - void Handle(const char** parameters, int pcnt, userrec *user) + CmdResult Handle(const char** parameters, int pcnt, userrec *user) { /* syntax: CBAN #channel time :reason goes here */ /* 'time' is a human-readable timestring, like 2d3h2s. */ @@ -107,8 +107,11 @@ class cmd_cban : public command_t else { user->WriteServ( "403 %s %s :Invalid channel name", user->nick, parameters[0]); + return CMD_FAILURE; } } + + return CMD_SUCCESS; } }; |