summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-24 01:47:47 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-24 01:47:47 +0000
commit443654f15bf036bb18f9847332e2bd03ec823b3d (patch)
tree27e4ac8448922d1c1831563e021fc8c5d534edec /src/commands.c
parent99fe46de552058cc5aff49ab3cded4ba35bd1510 (diff)
Changed subcommand parameter of Command's OnHelp() from std::string to ci::string, allows sub-help (like NS SET PASSWORD) to be called without requiring the subcommand to be sent by the user in all caps.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2391 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c
index e9071141c..17f854a99 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -160,7 +160,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
}
}
- // If the command requires a permission, and they aren't registered or don't have the required perm, DENIED
+ // If the command requires a permission, and they aren't registered or don't have the required perm, DENIED
if (!c->permission.empty())
{
if (!u->nc->HasPriv(c->permission) && !u->nc->HasCommand(c->permission))
@@ -195,7 +195,7 @@ void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[], const char
Command *c = findCommand(cmdTable, token.c_str());
- std::string subcommand = tokens.StreamEnd() ? "" : tokens.GetRemaining();
+ ci::string subcommand = tokens.StreamEnd() ? "" : tokens.GetRemaining().c_str();
if (!c || !c->OnHelp(u, subcommand))
notice_lang(service, u, NO_HELP_AVAILABLE, cmd);