summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-02-27 17:16:48 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-02-27 17:16:48 +0100
commita5ca8b892c384d5926bf03353ef878023f0f573d (patch)
tree72392fbadccef0f1be54bb228753b86140eeb810 /src/users.cpp
parent5a3ac07e14603a3900ed083e3bfe4b4075c6ecfb (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.cpp3
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++)
{