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 /modules/botserv | |
| parent | 1ff4719ea70cfead41bd91d7b78cfdcb5b84b8cc (diff) | |
Remove many more old C style format strings in the protocol functions
Diffstat (limited to 'modules/botserv')
| -rw-r--r-- | modules/botserv/control.cpp | 4 | ||||
| -rw-r--r-- | modules/botserv/main/botserv.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/botserv/control.cpp b/modules/botserv/control.cpp index 86b4ed829..448a28baf 100644 --- a/modules/botserv/control.cpp +++ b/modules/botserv/control.cpp @@ -71,7 +71,7 @@ class CommandBSSay : public Command return; } - IRCD->SendPrivmsg(ci->GetBot(), ci->GetName(), "%s", text.c_str()); + IRCD->SendPrivmsg(ci->GetBot(), ci->GetName(), text); ci->GetBot()->lastmsg = Anope::CurTime; bool override = !source.AccessFor(ci).HasPriv("SAY"); @@ -141,7 +141,7 @@ class CommandBSAct : public Command if (message.empty()) return; - IRCD->SendAction(ci->GetBot(), ci->GetName(), "%s", message.c_str()); + IRCD->SendAction(ci->GetBot(), ci->GetName(), message); ci->GetBot()->lastmsg = Anope::CurTime; bool override = !source.AccessFor(ci).HasPriv("SAY"); diff --git a/modules/botserv/main/botserv.cpp b/modules/botserv/main/botserv.cpp index c6e1c6413..4f3d4c92b 100644 --- a/modules/botserv/main/botserv.cpp +++ b/modules/botserv/main/botserv.cpp @@ -101,7 +101,7 @@ class BotServCore : public Module, public BotServ::BotServService { ChannelMode *cm = ModeManager::FindChannelModeByName("OP"); char symbol = cm ? anope_dynamic_static_cast<ChannelModeStatus *>(cm)->symbol : 0; - IRCD->SendNotice(bi, (symbol ? Anope::string(symbol) : "") + c->name, "%s invited %s into the channel.", user->nick.c_str(), user->nick.c_str()); + IRCD->SendNotice(bi, (symbol ? Anope::string(symbol) : "") + c->name, "{0} invited {1} into the channel.", user->nick, user->nick); } ModeManager::ProcessModes(); |
