diff options
author | Adam <Adam@anope.org> | 2016-12-06 21:02:48 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-12-06 21:02:48 -0500 |
commit | 87ec095a89bbc73a4dd16858bea499f466066212 (patch) | |
tree | 776129c883242ae6b6c27884b128a336b801999b /src/users.cpp | |
parent | 1ff4719ea70cfead41bd91d7b78cfdcb5b84b8cc (diff) |
Remove many more old C style format strings in the protocol functions
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/users.cpp b/src/users.cpp index 4afe7d4a9..33a4cdaf6 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -92,7 +92,7 @@ static void CollideKill(User *target, const Anope::string &reason) else { // Be sure my user is really dead - IRCD->SendQuit(target, "%s", reason.c_str()); + IRCD->SendQuit(target, reason); // Reintroduce my client if (ServiceBot *bi = dynamic_cast<ServiceBot *>(target)) @@ -352,9 +352,9 @@ void User::SendMessage(const MessageSource &source, const Anope::string &msg) if (buf.length() + add.length() > Config->LineWrap) { if (send_privmsg) - IRCD->SendPrivmsg(source, this->GetUID(), "%s", buf.c_str()); + IRCD->SendPrivmsg(source, this->GetUID(), buf); else - IRCD->SendNotice(source, this->GetUID(), "%s", buf.c_str()); + IRCD->SendNotice(source, this->GetUID(), buf); buf.clear(); add = word; @@ -366,9 +366,9 @@ void User::SendMessage(const MessageSource &source, const Anope::string &msg) if (!buf.empty()) { if (send_privmsg) - IRCD->SendPrivmsg(source, this->GetUID(), "%s", buf.c_str()); + IRCD->SendPrivmsg(source, this->GetUID(), buf); else - IRCD->SendNotice(source, this->GetUID(), "%s", buf.c_str()); + IRCD->SendNotice(source, this->GetUID(), buf); } } } @@ -769,7 +769,7 @@ void User::Kill(const MessageSource &source, const Anope::string &reason) { Anope::string real_reason = source.GetName() + " (" + reason + ")"; - IRCD->SendSVSKill(source, this, "%s", real_reason.c_str()); + IRCD->SendSVSKill(source, this, real_reason); } void User::KillInternal(const MessageSource &source, const Anope::string &reason) |