summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 23:59:38 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 23:59:38 +0000
commit30b3d92d9479de4b550fad94131d5805139d89ed (patch)
treecae1487eb4eb6d797b1e6237c602835a9308755b /src
parent4836d9548d8078fa53b854cc5510820922e8211b (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.c2
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;