From 30b3d92d9479de4b550fad94131d5805139d89ed Mon Sep 17 00:00:00 2001 From: rburchell Date: Wed, 11 Feb 2009 23:59:38 +0000 Subject: Audit cs_forbid, cs_getkey, cs_getpass. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2018 5417fbe8-f217-4b02-8779-1006273d7864 --- TODO | 3 --- src/core/cs_forbid.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/TODO b/TODO index cca85dcf8..0f1c0b98a 100644 --- a/TODO +++ b/TODO @@ -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; -- cgit