diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-16 15:52:01 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-18 21:09:44 +0200 |
commit | b0d652a15f46bbd05657b39ca1bcadd42769354b (patch) | |
tree | 11a6b5fa58e9de28cb7485806a7e14972ea276de /src | |
parent | 801af5b47303cea3c77e3cf0188031e754f6ca15 (diff) |
Remove unused UserManager::ServerPrivmsgAll()
Diffstat (limited to 'src')
-rw-r--r-- | src/usermanager.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 8ed87a338..aa0be2f3b 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -322,9 +322,6 @@ unsigned int UserManager::LocalUserCount() void UserManager::ServerNoticeAll(const char* text, ...) { - if (!text) - return; - char textbuffer[MAXBUF]; va_list argsPtr; va_start (argsPtr, text); @@ -340,27 +337,6 @@ void UserManager::ServerNoticeAll(const char* text, ...) } } -void UserManager::ServerPrivmsgAll(const char* text, ...) -{ - if (!text) - return; - - char textbuffer[MAXBUF]; - va_list argsPtr; - va_start (argsPtr, text); - vsnprintf(textbuffer, MAXBUF, text, argsPtr); - va_end(argsPtr); - - const std::string message = "PRIVMSG $" + ServerInstance->Config->ServerName + " :" + textbuffer; - - for (LocalUserList::const_iterator i = local_users.begin(); i != local_users.end(); i++) - { - User* t = *i; - t->WriteServ(message); - } -} - - /* return how many users have a given mode e.g. 'a' */ int UserManager::ModeCount(const char mode) { |