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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/bs_help.c b/src/core/bs_help.c
index 3506d3acd..181f8e16f 100644
--- a/src/core/bs_help.c
+++ b/src/core/bs_help.c
@@ -24,12 +24,13 @@ class CommandBSHelp : public Command
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
- mod_help_cmd(s_BotServ, u, BOTSERV, params.size() > 0 ? params[0].c_str() : NULL);
+ mod_help_cmd(s_BotServ, u, BOTSERV, params[0].c_str());
return MOD_CONT;
}
void OnSyntaxError(User *u)
{
+ // Abuse syntax error to display general list help.
notice_help(s_BotServ, u, BOT_HELP);
moduleDisplayHelp(4, u);
notice_help(s_BotServ, u, BOT_HELP_FOOTER, BSMinUsers);