From 8d0aa3b5890340467167094f1e8b8140bb5adee6 Mon Sep 17 00:00:00 2001 From: rburchell Date: Fri, 13 Feb 2009 15:39:55 +0000 Subject: Audit ns_*. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2036 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_help.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 ¶ms) { - 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); -- cgit