summaryrefslogtreecommitdiff
path: root/modules/botserv/botserv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/botserv/botserv.cpp')
-rw-r--r--modules/botserv/botserv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/botserv/botserv.cpp b/modules/botserv/botserv.cpp
index 706865522..c9172ba0e 100644
--- a/modules/botserv/botserv.cpp
+++ b/modules/botserv/botserv.cpp
@@ -75,7 +75,8 @@ public:
{
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());
+ const auto message = Anope::printf("%s invited %s into the channel.", user->nick.c_str(), user->nick.c_str());
+ IRCD->SendNotice(bi, (symbol ? Anope::string(symbol) : "") + c->name, message);
}
ModeManager::ProcessModes();