From 443654f15bf036bb18f9847332e2bd03ec823b3d Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Fri, 24 Jul 2009 01:47:47 +0000 Subject: 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 --- src/modules/hs_request.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/hs_request.c') 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, " "); -- cgit