diff options
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | src/core/cs_forbid.c | 2 |
2 files changed, 1 insertions, 4 deletions
@@ -46,9 +46,6 @@ Legend: [ ] HelpServ must die (1.9.1?) [-] Command parser cleanup: mod_current_buffer needs to go away and be replaced by a proper parser. Commands should then indicate how they want the buffer split. These all need reviewing, remove them from the list _AS YOU GO_. Talk t0 w00t or CBX if you don't know what this is for: - src/core/cs_forbid.c - src/core/cs_getkey.c - src/core/cs_getpass.c src/core/cs_help.c src/core/cs_identify.c src/core/cs_info.c diff --git a/src/core/cs_forbid.c b/src/core/cs_forbid.c index 382721434..29c365b1c 100644 --- a/src/core/cs_forbid.c +++ b/src/core/cs_forbid.c @@ -40,7 +40,7 @@ class CommandCSForbid : public Command { ChannelInfo *ci; const char *chan = params[0].c_str(); - const char *reason = params[1].c_str(); + const char *reason = params.size() > 1 ? params[1].c_str() : NULL; Channel *c; |