1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 15:13:14 +02:00

Remove the formatting overloads of SendNotice/SendPrivmsg.

This commit is contained in:
Sadie Powell
2024-06-24 13:29:41 +01:00
parent 249ad3dfea
commit 6e5713d64a
9 changed files with 20 additions and 40 deletions
+2 -1
View File
@@ -198,7 +198,8 @@ public:
Anope::string *greet = ns_greet.Get(user->Account());
if (bs_greet.HasExt(c->ci) && greet != NULL && !greet->empty() && c->FindUser(c->ci->bi) && c->ci->AccessFor(user).HasPriv("GREET"))
{
IRCD->SendPrivmsg(*c->ci->bi, c->name, "[%s] %s", user->Account()->display.c_str(), greet->c_str());
const auto message = Anope::printf("[%s] %s", user->Account()->display.c_str(), greet->c_str());
IRCD->SendPrivmsg(*c->ci->bi, c->name, message);
c->ci->bi->lastmsg = Anope::CurTime;
}
}