summaryrefslogtreecommitdiff
path: root/modules/botserv/control.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-12-06 21:02:48 -0500
committerAdam <Adam@anope.org>2016-12-06 21:02:48 -0500
commit87ec095a89bbc73a4dd16858bea499f466066212 (patch)
tree776129c883242ae6b6c27884b128a336b801999b /modules/botserv/control.cpp
parent1ff4719ea70cfead41bd91d7b78cfdcb5b84b8cc (diff)
Remove many more old C style format strings in the protocol functions
Diffstat (limited to 'modules/botserv/control.cpp')
-rw-r--r--modules/botserv/control.cpp4
1 files changed, 2 insertions, 2 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");