diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-11 23:59:38 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-11 23:59:38 +0000 |
commit | 30b3d92d9479de4b550fad94131d5805139d89ed (patch) | |
tree | cae1487eb4eb6d797b1e6237c602835a9308755b | |
parent | 4836d9548d8078fa53b854cc5510820922e8211b (diff) |
Audit cs_forbid, cs_getkey, cs_getpass.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2018 5417fbe8-f217-4b02-8779-1006273d7864
-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; |