summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-02 12:50:04 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-02 12:50:04 +0200
commit2465f88a587199a200cdde1a11e0ac7fbd51a0da (patch)
tree16fe1f66497f61a23f850592a5b31f450aa24e23 /src/users.cpp
parenta6e68c0d346395630dee9dc69211a284360b6c62 (diff)
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.cpp13
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.