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/core/cs_modes.c | |
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/core/cs_modes.c')
-rw-r--r-- | src/core/cs_modes.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/cs_modes.c b/src/core/cs_modes.c index 239b31305..e71031d28 100644 --- a/src/core/cs_modes.c +++ b/src/core/cs_modes.c @@ -79,7 +79,7 @@ class CommandCSOp : public Command return do_util(u, &csmodeutils[MUT_OP], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_OP); return true; @@ -105,7 +105,7 @@ class CommandCSDeOp : public Command return do_util(u, &csmodeutils[MUT_DEOP], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_DEOP); return true; @@ -131,7 +131,7 @@ class CommandCSVoice : public Command return do_util(u, &csmodeutils[MUT_VOICE], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_VOICE); return true; @@ -157,7 +157,7 @@ class CommandCSDeVoice : public Command return do_util(u, &csmodeutils[MUT_DEVOICE], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_DEVOICE); return true; @@ -189,7 +189,7 @@ class CommandCSHalfOp : public Command return do_util(u, &csmodeutils[MUT_HALFOP], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_HALFOP); return true; @@ -220,7 +220,7 @@ class CommandCSDeHalfOp : public Command return do_util(u, &csmodeutils[MUT_DEHALFOP], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_DEHALFOP); return true; @@ -251,7 +251,7 @@ class CommandCSProtect : public Command return do_util(u, &csmodeutils[MUT_PROTECT], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_PROTECT); return true; @@ -283,7 +283,7 @@ class CommandCSDeProtect : public Command return do_util(u, &csmodeutils[MUT_DEPROTECT], (params.size() > 0 ? params[0].c_str() : NULL), (params.size() > 1 ? params[1].c_str() : NULL)); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_DEPROTECT); return true; @@ -310,7 +310,7 @@ class CommandCSOwner : public Command return do_util(u, &csmodeutils[MUT_OWNER], (params.size() > 0 ? params[0].c_str() : NULL), NULL); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_OWNER); return true; @@ -337,7 +337,7 @@ class CommandCSDeOwner : public Command return do_util(u, &csmodeutils[MUT_DEOWNER], (params.size() > 0 ? params[0].c_str() : NULL), NULL); } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_ChanServ, u, CHAN_HELP_DEOWNER); return true; |