From 4d4306d8a91387baf642d6e4703f87246c688d2f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 24 Jan 2015 15:02:25 +0100 Subject: Remove needless checks from User::WriteCommon()/WriteCommonRaw() --- src/users.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 4dffe6056..12243c64b 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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); } -- cgit v1.2.3