1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 03:23:13 +02:00

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
This commit is contained in:
cyberbotx
2009-07-24 01:47:47 +00:00
parent 99fe46de55
commit 443654f15b
112 changed files with 155 additions and 154 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ class CommandCSAppendTopic : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_ChanServ, u, LNG_APPENDTOPIC_SYNTAX);
ircdproto->SendMessage(findbot(s_ChanServ), u->nick, " ");
+1 -1
View File
@@ -228,7 +228,7 @@ class CommandCSEnforce : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_ChanServ, u, LNG_ENFORCE_SYNTAX);
ircdproto->SendMessage(findbot(s_ChanServ), u->nick, " ");
+1 -1
View File
@@ -70,7 +70,7 @@ class CommandCSTBan : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
this->OnSyntaxError(u);
ircdproto->SendMessage(findbot(s_ChanServ), u->nick, " ");
+4 -4
View File
@@ -184,7 +184,7 @@ class CommandHSRequest : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_HostServ, u, LNG_REQUEST_SYNTAX);
ircdproto->SendMessage(findbot(s_HostServ), u->nick, " ");
@@ -247,7 +247,7 @@ class CommandHSActivate : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_HostServ, u, LNG_ACTIVATE_SYNTAX);
ircdproto->SendMessage(findbot(s_HostServ), u->nick, " ");
@@ -310,7 +310,7 @@ class CommandHSReject : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_HostServ, u, LNG_REJECT_SYNTAX);
ircdproto->SendMessage(findbot(s_HostServ), u->nick, " ");
@@ -388,7 +388,7 @@ class CommandHSWaiting : public HSListBase
return this->DoList(u, params);
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
me->NoticeLang(s_HostServ, u, LNG_WAITING_SYNTAX);
ircdproto->SendMessage(findbot(s_HostServ), u->nick, " ");
+2 -2
View File
@@ -123,7 +123,7 @@ class CommandNSOInfo : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
if (!is_oper(u))
return false;
@@ -200,7 +200,7 @@ class CommandCSOInfo : public Command
return MOD_CONT;
}
bool OnHelp(User *u, const std::string &subcommand)
bool OnHelp(User *u, const ci::string &subcommand)
{
if (!is_oper(u))
return false;