]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove needless checks from User::WriteCommon()/WriteCommonRaw()
authorAttila Molnar <attilamolnar@hush.com>
Sat, 24 Jan 2015 14:02:25 +0000 (15:02 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 24 Jan 2015 14:02:25 +0000 (15:02 +0100)
src/users.cpp

index 4dffe6056a8a3b25131aacbcd59df342b89f1a60..12243c64b074df57ab7442f4b5e8a782d79c5858 100644 (file)
@@ -866,9 +866,6 @@ namespace
 
 void User::WriteCommon(const char* text, ...)
 {
-       if (this->registered != REG_ALL || quitting)
-               return;
-
        std::string textbuffer;
        VAFORMAT(textbuffer, text, text);
        textbuffer = ":" + this->GetFullHost() + " " + textbuffer;
@@ -877,9 +874,6 @@ void User::WriteCommon(const char* text, ...)
 
 void User::WriteCommonRaw(const std::string &line, bool include_self)
 {
-       if (this->registered != REG_ALL || quitting)
-               return;
-
        WriteCommonRawHandler handler(line);
        ForEachNeighbor(handler, include_self);
 }