diff options
| author | 2014-02-27 17:16:48 +0100 | |
|---|---|---|
| committer | 2014-02-27 17:16:48 +0100 | |
| commit | a5ca8b892c384d5926bf03353ef878023f0f573d (patch) | |
| tree | 72392fbadccef0f1be54bb228753b86140eeb810 /src/users.cpp | |
| parent | cmd_topic Remove redundant NULL check (diff) | |
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
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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++) { |
