summaryrefslogtreecommitdiff
path: root/modules/botserv
diff options
context:
space:
mode:
Diffstat (limited to 'modules/botserv')
-rw-r--r--modules/botserv/control.cpp4
-rw-r--r--modules/botserv/main/botserv.cpp2
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();