diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-07-24 01:47:47 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-07-24 01:47:47 +0000 |
| commit | 443654f15bf036bb18f9847332e2bd03ec823b3d (patch) | |
| tree | 27e4ac8448922d1c1831563e021fc8c5d534edec /src/modules | |
| parent | 99fe46de552058cc5aff49ab3cded4ba35bd1510 (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/modules')
| -rw-r--r-- | src/modules/cs_appendtopic.c | 2 | ||||
| -rw-r--r-- | src/modules/cs_enforce.c | 2 | ||||
| -rw-r--r-- | src/modules/cs_tban.c | 2 | ||||
| -rw-r--r-- | src/modules/hs_request.c | 8 | ||||
| -rw-r--r-- | src/modules/os_info.c | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c index c102e35b1..d2c53e271 100644 --- a/src/modules/cs_appendtopic.c +++ b/src/modules/cs_appendtopic.c @@ -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, " "); diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c index 22987965e..b61295966 100644 --- a/src/modules/cs_enforce.c +++ b/src/modules/cs_enforce.c @@ -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, " "); diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c index 160fd19ee..ffcc3bad2 100644 --- a/src/modules/cs_tban.c +++ b/src/modules/cs_tban.c @@ -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, " "); diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c index 2a047d9b9..dbd6b67eb 100644 --- a/src/modules/hs_request.c +++ b/src/modules/hs_request.c @@ -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, " "); diff --git a/src/modules/os_info.c b/src/modules/os_info.c index 93eddb88c..fcd20d9bb 100644 --- a/src/modules/os_info.c +++ b/src/modules/os_info.c @@ -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; |
