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 /src | |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/cs_forbid.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |