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/greet.cpp | |
parent | 249ad3dfea933310f10947cc03f6fe85ab116b81 (diff) |
Remove the formatting overloads of SendNotice/SendPrivmsg.
Diffstat (limited to 'modules/greet.cpp')
-rw-r--r-- | modules/greet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/greet.cpp b/modules/greet.cpp index 1260b3a28..670ff37ba 100644 --- a/modules/greet.cpp +++ b/modules/greet.cpp @@ -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; } } |