diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-01-09 13:33:33 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-09 13:33:33 +0100 |
commit | 36f12984d3010bfad69de0c37a3203b0c471521c (patch) | |
tree | de3607e952635ae6baadb38d8e066e19f910d9a2 /src/users.cpp | |
parent | 833ae95adc3d8e0b7ba0e82af4cbd173bb98431e (diff) |
Stop null checking pointers that are always valid
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 88ae0faf4..bf099ff98 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1088,7 +1088,7 @@ void User::SendText(const std::string& linePrefix, std::stringstream& textStream */ bool User::SharesChannelWith(User *other) { - if ((!other) || (this->registered != REG_ALL) || (other->registered != REG_ALL)) + if ((this->registered != REG_ALL) || (other->registered != REG_ALL)) return false; /* Outer loop */ |