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/core/ns_suspend.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/ns_suspend.c') diff --git a/src/core/ns_suspend.c b/src/core/ns_suspend.c index 428f6226c..06e752e14 100644 --- a/src/core/ns_suspend.c +++ b/src/core/ns_suspend.c @@ -82,7 +82,7 @@ class CommandNSSuspend : public Command alog("%s: %s set SUSPEND for nick %s", s_NickServ, u->nick, nick); notice_lang(s_NickServ, u, NICK_SUSPEND_SUCCEEDED, nick); - + FOREACH_MOD(I_OnNickSuspended, OnNickSuspend(na)) } else @@ -93,7 +93,7 @@ class CommandNSSuspend : public Command return MOD_CONT; } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_NickServ, u, NICK_SERVADMIN_HELP_SUSPEND); return true; @@ -150,7 +150,7 @@ class CommandNSUnSuspend : public Command alog("%s: %s set UNSUSPEND for nick %s", s_NickServ, u->nick, nick); notice_lang(s_NickServ, u, NICK_UNSUSPEND_SUCCEEDED, nick); - + FOREACH_MOD(I_OnNickUnsuspended, OnNickUnsuspended(na)); } else @@ -161,7 +161,7 @@ class CommandNSUnSuspend : public Command return MOD_CONT; } - bool OnHelp(User *u, const std::string &subcommand) + bool OnHelp(User *u, const ci::string &subcommand) { notice_help(s_NickServ, u, NICK_SERVADMIN_HELP_UNSUSPEND); return true; -- cgit