diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-11 00:57:47 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-11 00:57:47 +0000 |
commit | b0e41b4811d89b1d001ebd810b71d13197123d6b (patch) | |
tree | 223a23d2aaa9809787014a183302085b75eee019 /src/core/cs_help.c | |
parent | 56633e894ddff5a5da71fdcd1d8251074dd7e77a (diff) |
Fix *_help, so they work and, uh, don't crash.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2010 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_help.c')
-rw-r--r-- | src/core/cs_help.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/cs_help.c b/src/core/cs_help.c index b27c6a7c2..4d71be428 100644 --- a/src/core/cs_help.c +++ b/src/core/cs_help.c @@ -25,8 +25,7 @@ class CommandCSHelp : public Command CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { - const char *cmd = params[0].c_str(); - const char *subcmd = params[1].c_str(); + const char *cmd = params.size() > 0 ? params[0].c_str() : NULL; if (!cmd) { |