summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-24 01:47:47 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-24 01:47:47 +0000
commit443654f15bf036bb18f9847332e2bd03ec823b3d (patch)
tree27e4ac8448922d1c1831563e021fc8c5d534edec /src/core
parent99fe46de552058cc5aff49ab3cded4ba35bd1510 (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')
-rw-r--r--src/core/bs_act.c4
-rw-r--r--src/core/bs_assign.c2
-rw-r--r--src/core/bs_badwords.c2
-rw-r--r--src/core/bs_bot.c2
-rw-r--r--src/core/bs_botlist.c2
-rw-r--r--src/core/bs_info.c2
-rw-r--r--src/core/bs_kick.c2
-rw-r--r--src/core/bs_say.c2
-rw-r--r--src/core/bs_set.c2
-rw-r--r--src/core/bs_unassign.c2
-rw-r--r--src/core/cs_access.c6
-rw-r--r--src/core/cs_akick.c2
-rw-r--r--src/core/cs_ban.c4
-rw-r--r--src/core/cs_clear.c2
-rw-r--r--src/core/cs_drop.c2
-rw-r--r--src/core/cs_forbid.c4
-rw-r--r--src/core/cs_getkey.c2
-rw-r--r--src/core/cs_getpass.c4
-rw-r--r--src/core/cs_identify.c2
-rw-r--r--src/core/cs_info.c2
-rw-r--r--src/core/cs_invite.c2
-rw-r--r--src/core/cs_kick.c2
-rw-r--r--src/core/cs_list.c2
-rw-r--r--src/core/cs_logout.c2
-rw-r--r--src/core/cs_modes.c20
-rw-r--r--src/core/cs_register.c4
-rw-r--r--src/core/cs_sendpass.c2
-rw-r--r--src/core/cs_set.c2
-rw-r--r--src/core/cs_status.c2
-rw-r--r--src/core/cs_suspend.c4
-rw-r--r--src/core/cs_topic.c2
-rw-r--r--src/core/cs_xop.c10
-rw-r--r--src/core/hs_del.c2
-rw-r--r--src/core/hs_delall.c2
-rw-r--r--src/core/hs_group.c2
-rw-r--r--src/core/hs_list.c2
-rw-r--r--src/core/hs_off.c2
-rw-r--r--src/core/hs_on.c2
-rw-r--r--src/core/hs_set.c2
-rw-r--r--src/core/hs_setall.c2
-rw-r--r--src/core/ms_cancel.c2
-rw-r--r--src/core/ms_check.c2
-rw-r--r--src/core/ms_del.c2
-rw-r--r--src/core/ms_info.c4
-rw-r--r--src/core/ms_list.c2
-rw-r--r--src/core/ms_read.c2
-rw-r--r--src/core/ms_rsend.c2
-rw-r--r--src/core/ms_send.c2
-rw-r--r--src/core/ms_sendall.c2
-rw-r--r--src/core/ms_set.c2
-rw-r--r--src/core/ms_staff.c2
-rw-r--r--src/core/ns_access.c2
-rw-r--r--src/core/ns_alist.c2
-rw-r--r--src/core/ns_drop.c2
-rw-r--r--src/core/ns_forbid.c2
-rw-r--r--src/core/ns_getemail.c2
-rw-r--r--src/core/ns_getpass.c2
-rw-r--r--src/core/ns_ghost.c2
-rw-r--r--src/core/ns_group.c4
-rw-r--r--src/core/ns_identify.c2
-rw-r--r--src/core/ns_info.c2
-rw-r--r--src/core/ns_list.c2
-rw-r--r--src/core/ns_logout.c2
-rw-r--r--src/core/ns_recover.c2
-rw-r--r--src/core/ns_register.c6
-rw-r--r--src/core/ns_release.c2
-rw-r--r--src/core/ns_saset.c2
-rw-r--r--src/core/ns_sendpass.c2
-rw-r--r--src/core/ns_set.c2
-rw-r--r--src/core/ns_status.c2
-rw-r--r--src/core/ns_suspend.c8
-rw-r--r--src/core/ns_update.c2
-rw-r--r--src/core/os_akill.c2
-rw-r--r--src/core/os_chankill.c2
-rw-r--r--src/core/os_chanlist.c2
-rw-r--r--src/core/os_clearmodes.c2
-rw-r--r--src/core/os_defcon.c2
-rw-r--r--src/core/os_global.c2
-rw-r--r--src/core/os_ignore.c2
-rw-r--r--src/core/os_jupe.c2
-rw-r--r--src/core/os_kick.c2
-rw-r--r--src/core/os_mode.c2
-rw-r--r--src/core/os_modinfo.c2
-rw-r--r--src/core/os_modlist.c2
-rw-r--r--src/core/os_modload.c2
-rw-r--r--src/core/os_modunload.c2
-rw-r--r--src/core/os_news.c8
-rw-r--r--src/core/os_noop.c2
-rw-r--r--src/core/os_oline.c2
-rw-r--r--src/core/os_quit.c2
-rw-r--r--src/core/os_reload.c2
-rw-r--r--src/core/os_restart.c2
-rw-r--r--src/core/os_session.c4
-rw-r--r--src/core/os_set.c2
-rw-r--r--src/core/os_sgline.c2
-rw-r--r--src/core/os_shutdown.c2
-rw-r--r--src/core/os_sqline.c2
-rw-r--r--src/core/os_staff.c2
-rw-r--r--src/core/os_stats.c2
-rw-r--r--src/core/os_svsnick.c2
-rw-r--r--src/core/os_szline.c2
-rw-r--r--src/core/os_umode.c2
-rw-r--r--src/core/os_update.c2
-rw-r--r--src/core/os_userlist.c2
104 files changed, 136 insertions, 136 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c
index 780f08e78..21f18063b 100644
--- a/src/core/bs_act.c
+++ b/src/core/bs_act.c
@@ -50,7 +50,7 @@ class CommandBSAct : public Command
{
params[1].erase(i, 1);
}
-
+
ircdproto->SendAction(ci->bi, ci->name, "%s", params[1].c_str());
ci->bi->lastmsg = time(NULL);
if (LogBot && LogChannel && logchan && !debug && findchan(LogChannel))
@@ -63,7 +63,7 @@ class CommandBSAct : public Command
syntax_error(s_BotServ, u, "ACT", BOT_ACT_SYNTAX);
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_BotServ, u, BOT_HELP_ACT);
return true;
diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c
index aa8d30b9f..20c5e3bb4 100644
--- a/src/core/bs_assign.c
+++ b/src/core/bs_assign.c
@@ -66,7 +66,7 @@ class CommandBSAssign : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_BotServ, u, BOT_HELP_ASSIGN);
return true;
diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c
index 190f5b510..bc22c0312 100644
--- a/src/core/bs_badwords.c
+++ b/src/core/bs_badwords.c
@@ -285,7 +285,7 @@ class CommandBSBadwords : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_BotServ, u, BOT_HELP_BADWORDS);
return true;
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index 96f72c336..787f5b131 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -425,7 +425,7 @@ class CommandBSBot : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_lang(s_BotServ, u, BOT_SERVADMIN_HELP_BOT);
return true;
diff --git a/src/core/bs_botlist.c b/src/core/bs_botlist.c
index e363c8545..5064642f6 100644
--- a/src/core/bs_botlist.c
+++ b/src/core/bs_botlist.c
@@ -63,7 +63,7 @@ class CommandBSBotList : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_BotServ, u, BOT_HELP_BOTLIST);
return true;
diff --git a/src/core/bs_info.c b/src/core/bs_info.c
index e43f264c9..cad350cb2 100644
--- a/src/core/bs_info.c
+++ b/src/core/bs_info.c
@@ -236,7 +236,7 @@ class CommandBSInfo : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_BotServ, u, BOT_HELP_INFO);
return true;
diff --git a/src/core/bs_kick.c b/src/core/bs_kick.c
index 7b6b153bf..372a4ef7f 100644
--- a/src/core/bs_kick.c
+++ b/src/core/bs_kick.c
@@ -308,7 +308,7 @@ class CommandBSKick : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
if (subcommand.empty())
notice_help(s_BotServ, u, BOT_HELP_KICK);
diff --git a/src/core/bs_say.c b/src/core/bs_say.c
index 5f9c766bf..6fd8f41c7 100644
--- a/src/core/bs_say.c
+++ b/src/core/bs_say.c
@@ -63,7 +63,7 @@ class CommandBSSay : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_BotServ, u, BOT_HELP_SAY);
return true;
diff --git a/src/core/bs_set.c b/src/core/bs_set.c
index 6e9458fb4..c68a11688 100644
--- a/src/core/bs_set.c
+++ b/src/core/bs_set.c
@@ -145,7 +145,7 @@ class CommandBSSet : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
if (subcommand.empty())
{
diff --git a/src/core/bs_unassign.c b/src/core/bs_unassign.c
index 52b28a078..83771fc9d 100644
--- a/src/core/bs_unassign.c
+++ b/src/core/bs_unassign.c
@@ -42,7 +42,7 @@ class CommandBSUnassign : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_BotServ, u, BOT_HELP_UNASSIGN);
return true;
diff --git a/src/core/cs_access.c b/src/core/cs_access.c
index 54f5ff5f8..c2b5d93f2 100644
--- a/src/core/cs_access.c
+++ b/src/core/cs_access.c
@@ -196,7 +196,7 @@ class CommandCSAccess : public Command
ci->AddAccess(nc, level);
FOREACH_MOD(I_OnAccessAdd, OnAccessAdd(ci, u, na->nick, level));
-
+
alog("%s: %s!%s@%s (level %d) set access level %d to %s (group %s) on channel %s", s_ChanServ, u->nick, u->GetIdent().c_str(), u->host, ulev, level, na->nick, nc->display, ci->name);
notice_lang(s_ChanServ, u, CHAN_ACCESS_ADDED, nc->display, ci->name, level);
}
@@ -336,7 +336,7 @@ class CommandCSAccess : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_ChanServ, u, CHAN_HELP_ACCESS);
notice_help(s_ChanServ, u, CHAN_HELP_ACCESS_LEVELS);
@@ -470,7 +470,7 @@ class CommandCSLevels : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_ChanServ, u, CHAN_HELP_LEVELS);
return true;
diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c
index ef09befbf..d396d0386 100644
--- a/src/core/cs_akick.c
+++ b/src/core/cs_akick.c
@@ -647,7 +647,7 @@ class CommandCSAKick : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_ChanServ, u, CHAN_HELP_AKICK);
return true;
diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c
index 277834571..d69b0540c 100644
--- a/src/core/cs_ban.c
+++ b/src/core/cs_ban.c
@@ -100,7 +100,7 @@ class CommandCSBan : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_ChanServ, u, CHAN_HELP_BAN);
return true;
@@ -147,7 +147,7 @@ class CommandCSUnban : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_ChanServ, u, CHAN_HELP_UNBAN);
return true;
diff --git a/src/core/cs_clear.c b/src/core/cs_clear.c
index e7e54867f..6aee7a93d 100644
--- a/src/core/cs_clear.c
+++ b/src/core/cs_clear.c
@@ -326,7 +326,7 @@ class CommandCSClear : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const std::string &subcommand)
+ bool OnHelp(User *u, const ci::string &subcommand)
{
notice_help(s_ChanServ, u, CHAN_HELP_CLEAR);
return true;
diff --git a/src/core/cs_drop.c b/src/core/cs_drop.c
index b2e58f4c8..fcf7a9a80 100644
--- a/