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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ns_help.c b/src/core/ns_help.c
index 552fc5091..5ba3d4d79 100644
--- a/src/core/ns_help.c
+++ b/src/core/ns_help.c
@@ -24,8 +24,8 @@ class CommandNSHelp : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
- const char *cmd = params[0].c_str();
- if (!stricmp(cmd, "SET LANGUAGE"))
+ const char *cmd = params.size() > 0 ? params[0].c_str() : NULL;
+ if (cmd && !stricmp(cmd, "SET LANGUAGE"))
{
int i;
notice_help(s_NickServ, u, NICK_HELP_SET_LANGUAGE);