1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 00:36:37 +02:00

Remove the formatting overload of User::SetModesInternal.

This commit is contained in:
Sadie Powell
2024-10-02 11:15:42 +01:00
parent 8232759a92
commit 94dbb19593
2 changed files with 0 additions and 12 deletions
-11
View File
@@ -672,17 +672,6 @@ void User::SetModes(BotInfo *bi, const Anope::string &umodes)
}
}
void User::SetModesInternal(const MessageSource &source, const char *umodes, ...)
{
char buf[BUFSIZE] = "";
va_list args;
va_start(args, umodes);
vsnprintf(buf, BUFSIZE - 1, umodes, args);
va_end(args);
SetModesInternal(source, Anope::string(buf));
}
void User::SetModesInternal(const MessageSource &source, const Anope::string &umodes)
{
if (this->server && this->server->IsSynced() && Anope::string(umodes) != "+")