diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-24 15:02:25 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-24 15:02:25 +0100 |
commit | 4d4306d8a91387baf642d6e4703f87246c688d2f (patch) | |
tree | 10140e2c16461b311f2381c6e605d018f1176cc9 /src | |
parent | 5488a3cc5cfc6e26779c633041b97fdb917026f4 (diff) |
Remove needless checks from User::WriteCommon()/WriteCommonRaw()
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
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); } |