summaryrefslogtreecommitdiff
path: root/src/core/bs_help.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/bs_help.c')
-rw-r--r--src/core/bs_help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bs_help.c b/src/core/bs_help.c
index 480dd62f7..3506d3acd 100644
--- a/src/core/bs_help.c
+++ b/src/core/bs_help.c
@@ -24,7 +24,7 @@ class CommandBSHelp : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
- mod_help_cmd(s_BotServ, u, BOTSERV, params[0].c_str());
+ mod_help_cmd(s_BotServ, u, BOTSERV, params.size() > 0 ? params[0].c_str() : NULL);
return MOD_CONT;
}