From a5ca8b892c384d5926bf03353ef878023f0f573d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 27 Feb 2014 17:16:48 +0100 Subject: Remove REG_ALL checks from User::SharesChannelWith() These checks are never true currently and even if one or both users are unregistered proceeding is harmless --- src/users.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 6545e3b7a..a5737c9ce 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1073,9 +1073,6 @@ void User::SendText(const std::string& linePrefix, std::stringstream& textStream */ bool User::SharesChannelWith(User *other) { - if ((this->registered != REG_ALL) || (other->registered != REG_ALL)) - return false; - /* Outer loop */ for (UCListIter i = this->chans.begin(); i != this->chans.end(); i++) { -- cgit v1.2.3