summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/commands.c b/src/commands.c
index d8fcf5589..0e548a22d 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -76,10 +76,6 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
return;
}
}
- else
- {
- // Check whether or not access string is empty
- }
std::vector<ci::string> params;
std::string curparam;
@@ -109,7 +105,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
if (params.size() < c->MinParams)
{
- c->OnSyntaxError(u);
+ c->OnSyntaxError(u, params.size() > 1 ? params[1].c_str() : "");
return;
}