diff options
-rw-r--r-- | src/modules/m_safelist.cpp | 20 | ||||
-rw-r--r-- | src/modules/m_sajoin.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_samode.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_sanick.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_sapart.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_saquit.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_sasl.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_securelist.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_seenicks.cpp | 2 |
9 files changed, 27 insertions, 27 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index e42d085cb..007e6f890 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -93,9 +93,9 @@ class ModuleSafeList : public Module if (global_listing >= LimitList && !IS_OPER(user)) { - user->WriteServ("NOTICE %s :*** Server load is currently too heavy. Please try again later.", user->nick); - user->WriteNumeric(321, "%s Channel :Users Name",user->nick); - user->WriteNumeric(323, "%s :End of channel list.",user->nick); + user->WriteServ("NOTICE %s :*** Server load is currently too heavy. Please try again later.", user->nick.c_str()); + user->WriteNumeric(321, "%s Channel :Users Name",user->nick.c_str()); + user->WriteNumeric(323, "%s :End of channel list.",user->nick.c_str()); return 1; } @@ -132,9 +132,9 @@ class ModuleSafeList : public Module { if (ServerInstance->Time() < (*last_list_time)+ThrottleSecs) { - user->WriteServ("NOTICE %s :*** Woah there, slow down a little, you can't /LIST so often!",user->nick); - user->WriteNumeric(321, "%s Channel :Users Name",user->nick); - user->WriteNumeric(323, "%s :End of channel list.",user->nick); + user->WriteServ("NOTICE %s :*** Woah there, slow down a little, you can't /LIST so often!",user->nick.c_str()); + user->WriteNumeric(321, "%s Channel :Users Name",user->nick.c_str()); + user->WriteNumeric(323, "%s :End of channel list.",user->nick.c_str()); return 1; } @@ -153,7 +153,7 @@ class ModuleSafeList : public Module *llt = ServerInstance->Time(); user->Extend("safelist_last", llt); - user->WriteNumeric(321, "%s Channel :Users Name",user->nick); + user->WriteNumeric(321, "%s Channel :Users Name",user->nick.c_str()); global_listing++; @@ -188,7 +188,7 @@ class ModuleSafeList : public Module bool display = (match(chan->name, ld->glob) || (*chan->topic && match(chan->topic, ld->glob))); if ((users) && (display)) { - int counter = snprintf(buffer, MAXBUF, "322 %s * %ld :", user->nick, users); + int counter = snprintf(buffer, MAXBUF, "322 %s * %ld :", user->nick.c_str(), users); amount_sent += counter + ServerNameSize; user->WriteServ(std::string(buffer)); } @@ -198,7 +198,7 @@ class ModuleSafeList : public Module bool display = (match(chan->name, ld->glob) || (*chan->topic && match(chan->topic, ld->glob))); if ((users) && (display)) { - int counter = snprintf(buffer, MAXBUF, "322 %s %s %ld :[+%s] %s",user->nick, chan->name, users, chan->ChanModes(has_user || IS_OPER(user)), chan->topic); + int counter = snprintf(buffer, MAXBUF, "322 %s %s %ld :[+%s] %s",user->nick.c_str(), chan->name, users, chan->ChanModes(has_user || IS_OPER(user)), chan->topic); amount_sent += counter + ServerNameSize; user->WriteServ(std::string(buffer)); } @@ -210,7 +210,7 @@ class ModuleSafeList : public Module if (!ld->list_ended) { ld->list_ended = true; - user->WriteNumeric(323, "%s :End of channel list.",user->nick); + user->WriteNumeric(323, "%s :End of channel list.",user->nick.c_str()); } } } diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp index da81712c6..8b237674b 100644 --- a/src/modules/m_sajoin.cpp +++ b/src/modules/m_sajoin.cpp @@ -34,7 +34,7 @@ class CommandSajoin : public Command { if (ServerInstance->ULine(dest->server)) { - user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick); + user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick.c_str()); return CMD_FAILURE; } if (!ServerInstance->IsChannel(parameters[1].c_str())) diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 6cf7a5fbc..67b30b3ec 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -55,7 +55,7 @@ class CommandSamode : public Command } else { - user->WriteServ("NOTICE %s :*** Invalid SAMODE sequence.", user->nick); + user->WriteServ("NOTICE %s :*** Invalid SAMODE sequence.", user->nick.c_str()); } return CMD_FAILURE; diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp index d9547f92d..cd93377c8 100644 --- a/src/modules/m_sanick.cpp +++ b/src/modules/m_sanick.cpp @@ -34,7 +34,7 @@ class CommandSanick : public Command { if (ServerInstance->ULine(target->server)) { - user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick); + user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick.c_str()); return CMD_FAILURE; } std::string oldnick = user->nick; @@ -54,14 +54,14 @@ class CommandSanick : public Command } else { - user->WriteServ("NOTICE %s :*** Invalid nickname '%s'", user->nick, parameters[1].c_str()); + user->WriteServ("NOTICE %s :*** Invalid nickname '%s'", user->nick.c_str(), parameters[1].c_str()); } return CMD_FAILURE; } else { - user->WriteServ("NOTICE %s :*** No such nickname: '%s'", user->nick, parameters[0].c_str()); + user->WriteServ("NOTICE %s :*** No such nickname: '%s'", user->nick.c_str(), parameters[0].c_str()); } return CMD_FAILURE; diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp index 530d54fe0..40a4c54e5 100644 --- a/src/modules/m_sapart.cpp +++ b/src/modules/m_sapart.cpp @@ -42,7 +42,7 @@ class CommandSapart : public Command if (ServerInstance->ULine(dest->server)) { - user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick); + user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick.c_str()); return CMD_FAILURE; } @@ -69,7 +69,7 @@ class CommandSapart : public Command } else { - user->WriteServ("NOTICE %s :*** Unable to make %s part %s",user->nick, dest->nick, parameters[1].c_str()); + user->WriteServ("NOTICE %s :*** Unable to make %s part %s",user->nick.c_str(), dest->nick.c_str(), parameters[1].c_str()); return CMD_FAILURE; } } @@ -83,7 +83,7 @@ class CommandSapart : public Command } else { - user->WriteServ("NOTICE %s :*** Invalid nickname or channel", user->nick); + user->WriteServ("NOTICE %s :*** Invalid nickname or channel", user->nick.c_str()); } return CMD_FAILURE; diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp index ac986b1ec..91e792c8b 100644 --- a/src/modules/m_saquit.cpp +++ b/src/modules/m_saquit.cpp @@ -34,7 +34,7 @@ class CommandSaquit : public Command { if (ServerInstance->ULine(dest->server)) { - user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick); + user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick.c_str()); return CMD_FAILURE; } @@ -49,7 +49,7 @@ class CommandSaquit : public Command } else { - user->WriteServ("NOTICE %s :*** Invalid nickname '%s'", user->nick, parameters[0].c_str()); + user->WriteServ("NOTICE %s :*** Invalid nickname '%s'", user->nick.c_str(), parameters[0].c_str()); } return CMD_FAILURE; diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index ffd6259ff..1ad51b164 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -134,13 +134,13 @@ class SaslAuthenticator : public classbase switch (this->result) { case SASL_OK: - this->user->WriteNumeric(903, "%s :SASL authentication successful", this->user->nick); + this->user->WriteNumeric(903, "%s :SASL authentication successful", this->user->nick.c_str()); break; case SASL_ABORT: - this->user->WriteNumeric(906, "%s :SASL authentication aborted", this->user->nick); + this->user->WriteNumeric(906, "%s :SASL authentication aborted", this->user->nick.c_str()); break; case SASL_FAIL: - this->user->WriteNumeric(904, "%s :SASL authentication failed", this->user->nick); + this->user->WriteNumeric(904, "%s :SASL authentication failed", this->user->nick.c_str()); break; default: break; diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp index 1f9ac15e9..b86a35b7f 100644 --- a/src/modules/m_securelist.cpp +++ b/src/modules/m_securelist.cpp @@ -68,12 +68,12 @@ class ModuleSecureList : public Module return 0; /* Not exempt, BOOK EM DANNO! */ - user->WriteServ("NOTICE %s :*** You cannot list within the first %lu seconds of connecting. Please try again later.",user->nick, (unsigned long) WaitTime); + user->WriteServ("NOTICE %s :*** You cannot list within the first %lu seconds of connecting. Please try again later.",user->nick.c_str(), (unsigned long) WaitTime); /* Some crap clients (read: mIRC, various java chat applets) muck up if they don't * receive these numerics whenever they send LIST, so give them an empty LIST to mull over. */ - user->WriteNumeric(321, "%s Channel :Users Name",user->nick); - user->WriteNumeric(323, "%s :End of channel list.",user->nick); + user->WriteNumeric(321, "%s Channel :Users Name",user->nick.c_str()); + user->WriteNumeric(323, "%s :End of channel list.",user->nick.c_str()); return 1; } return 0; diff --git a/src/modules/m_seenicks.cpp b/src/modules/m_seenicks.cpp index 6b8a33d73..7f5d47d99 100644 --- a/src/modules/m_seenicks.cpp +++ b/src/modules/m_seenicks.cpp @@ -41,7 +41,7 @@ class ModuleSeeNicks : public Module virtual void OnUserPostNick(User* user, const std::string &oldnick) { - ServerInstance->SNO->WriteToSnoMask(IS_LOCAL(user) ? 'n' : 'N',"User %s changed their nickname to %s", oldnick.c_str(), user->nick); + ServerInstance->SNO->WriteToSnoMask(IS_LOCAL(user) ? 'n' : 'N',"User %s changed their nickname to %s", oldnick.c_str(), user->nick.c_str()); } }; |