summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/modules.h13
-rw-r--r--src/command.cpp2
-rw-r--r--src/commands.c4
-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
-rw-r--r--src/modules/cs_appendtopic.c2
-rw-r--r--src/modules/cs_enforce.c2
-rw-r--r--src/modules/cs_tban.c2
-rw-r--r--src/modules/hs_request.c8
-rw-r--r--src/modules/os_info.c4
112 files changed, 155 insertions, 154 deletions
diff --git a/include/modules.h b/include/modules.h
index fe171179d..61eab28df 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -18,6 +18,7 @@
#include "services.h"
#include <stdio.h>
#include "timers.h"
+#include "hashcomp.h"
/* Cross OS compatibility macros */
#ifdef _WIN32
@@ -255,7 +256,7 @@ class CoreExport Command
* @param subcommand The subcommand the user is requesting help on, or an empty string. (e.g. /ns help set foo bar lol gives a subcommand of "FOO BAR LOL")
* @return true if help was provided to the user, false otherwise.
*/
- virtual bool OnHelp(User *u, const std::string &subcommand);
+ virtual bool OnHelp(User *u, const ci::string &subcommand);
/** Requested when the user provides bad syntax to this command (not enough params, etc).
* @param u The user executing the command.
@@ -629,7 +630,7 @@ class CoreExport Module
/** Called before the database expire routines are called
* Note: Code that is in seperate expiry routines should just be done
- * when we save the DB, theres no need to have both
+ * when we save the DB, theres no need to have both
*/
virtual void OnPreDatabaseExpire() MARK_DEPRECATED { }
@@ -726,7 +727,7 @@ class CoreExport Module
* @param chname The channel name
*/
virtual void OnChanDrop(const char *chname) { }
-
+
/** Called when a channel is forbidden
* @param ci The channel
*/
@@ -772,7 +773,7 @@ class CoreExport Module
* @param u The user
*/
virtual void OnNickIdentify(User *u) { }
-
+
/** Called when a nick logs out
* @param u The nick
*/
@@ -787,7 +788,7 @@ class CoreExport Module
* @param na The nick alias
*/
virtual void OnNickSuspend(NickAlias *na) { }
-
+
/** Called when a nick is unsuspneded
* @param na The nick alias
*/
@@ -866,7 +867,7 @@ enum Implementation
I_OnUserKicked, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan,
/* Users */
- I_OnUserConnect, I_OnUserNickChange, I_OnUserLogoff, I_OnPreJoinChannel, I_OnJoinChannel,
+ I_OnUserConnect, I_OnUserNickChange, I_OnUserLogoff, I_OnPreJoinChannel, I_OnJoinChannel,
I_OnPrePartChannel, I_OnPartChannel,
/* OperServ */
diff --git a/src/command.cpp b/src/command.cpp
index 1718cb8a7..26b464483 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -36,7 +36,7 @@ Command::~Command()
CommandReturn Command::Execute(User *u, std::vector<std::string> &) { return MOD_CONT; }
-bool Command::OnHelp(User *u, const std::string &subcommand) { return false; }
+bool Command::OnHelp(User *u, const ci::string &subcommand) { return false; }
void Command::OnSyntaxError(User *u) { }
diff --git a/src/commands.c b/src/commands.c
index e9071141c..17f854a99 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -160,7 +160,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
}
}
- // If the command requires a permission, and they aren't registered or don't have the required perm, DENIED
+ // If the command requires a permission, and they aren't registered or don't have the required perm, DENIED
if (!c->permission.empty())
{
if (!u->nc->HasPriv(c->permission) && !u->nc->HasCommand(c->permission))
@@ -195,7 +195,7 @@ void mod_help_cmd(char *service, User * u, CommandHash * cmdTable[], const char
Command *c = findCommand(cmdTable, token.c_str());
- std::string subcommand = tokens.StreamEnd() ? "" : tokens.GetRemaining();
+ ci::string subcommand = tokens.StreamEnd() ? "" : tokens.GetRemaining().c_str();
if (!c || !c->OnHelp(u, subcommand))
notice_lang(service, u, NO_HELP_AVAILABLE, cmd);
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;
}