diff options
author | Sadie Powell <sadie@witchery.services> | 2024-06-24 13:29:41 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-06-24 13:30:17 +0100 |
commit | 6e5713d64a379fc64c7ff6658362d02b3618c3ca (patch) | |
tree | 013fe8b9831fb514502b7f07669929bd484ee45d /modules/botserv/botserv.cpp | |
parent | 249ad3dfea933310f10947cc03f6fe85ab116b81 (diff) |
Remove the formatting overloads of SendNotice/SendPrivmsg.
Diffstat (limited to 'modules/botserv/botserv.cpp')
-rw-r--r-- | modules/botserv/botserv.cpp | 3 |
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(); |