From 2465f88a587199a200cdde1a11e0ac7fbd51a0da Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 2 Apr 2014 12:50:04 +0200 Subject: Move User::SendAll() into core_privmsg This functionality is only used by the PRIVMSG and NOTICE handlers --- src/users.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 40147b37d..28a8bd4ea 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1129,19 +1129,6 @@ bool User::ChangeIdent(const std::string& newident) return true; } -void User::SendAll(const char* command, const char* text, ...) -{ - std::string textbuffer; - VAFORMAT(textbuffer, text, text); - const std::string message = ":" + this->GetFullHost() + " " + command + " $* :" + textbuffer; - - for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) - { - if ((*i)->registered == REG_ALL) - (*i)->Write(message); - } -} - /* * Sets a user's connection class. * If the class name is provided, it will be used. Otherwise, the class will be guessed using host/ip/ident/etc. -- cgit v1.2.3