summaryrefslogtreecommitdiff
path: root/src/core/ns_help.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ns_help.c')
-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);