summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-13 15:39:55 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-13 15:39:55 +0000
commit8d0aa3b5890340467167094f1e8b8140bb5adee6 (patch)
tree35e7e8970c9180d300552fa7c90e8e7152057d79 /src
parente616889a78e73d598e5479912d6bdbd1ae85409e (diff)
Audit ns_*.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2036 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/ns_help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ns_help.c b/src/core/ns_help.c
index 5ba3d4d79..339b11f25 100644
--- a/src/core/ns_help.c
+++ b/src/core/ns_help.c
@@ -18,14 +18,14 @@
class CommandNSHelp : public Command
{
public:
- CommandNSHelp() : Command("HELP", 0, 1)
+ CommandNSHelp() : Command("HELP", 1, 1)
{
}
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
- const char *cmd = params.size() > 0 ? params[0].c_str() : NULL;
- if (cmd && !stricmp(cmd, "SET LANGUAGE"))
+ const char *cmd = params[0].c_str();
+ if (!stricmp(cmd, "SET LANGUAGE"))
{
int i;
notice_help(s_NickServ, u, NICK_HELP_SET_LANGUAGE);