summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/users.h1
-rw-r--r--src/users.cpp11
2 files changed, 0 insertions, 12 deletions
diff --git a/include/users.h b/include/users.h
index fb740ab94..dff68fef2 100644
--- a/include/users.h
+++ b/include/users.h
@@ -309,7 +309,6 @@ public:
* @param setter who/what is setting the mode
* @param umodes The modes
*/
- void SetModesInternal(const MessageSource &source, const char *umodes, ...) ATTR_FORMAT(3, 4);
void SetModesInternal(const MessageSource &source, const Anope::string &umodes);
/** Get modes set for this user.
diff --git a/src/users.cpp b/src/users.cpp
index 070007648..4e01c6989 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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) != "+")