diff options
| author | 2014-04-02 12:50:04 +0200 | |
|---|---|---|
| committer | 2014-04-02 12:50:04 +0200 | |
| commit | 2465f88a587199a200cdde1a11e0ac7fbd51a0da (patch) | |
| tree | 16fe1f66497f61a23f850592a5b31f450aa24e23 /src/users.cpp | |
| parent | Remove User::WriteTo() functions; use User::WriteFrom() instead (diff) | |
| download | inspircd++-2465f88a587199a200cdde1a11e0ac7fbd51a0da.tar.gz inspircd++-2465f88a587199a200cdde1a11e0ac7fbd51a0da.tar.bz2 inspircd++-2465f88a587199a200cdde1a11e0ac7fbd51a0da.zip | |
Move User::SendAll() into core_privmsg
This functionality is only used by the PRIVMSG and NOTICE handlers
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
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. |
