mirror of
https://github.com/anope/anope.git
synced 2026-06-28 15:36:38 +02:00
Channel::HasUserStatus: Don't just return false if cms is NULL.
This commit is contained in:
@@ -255,9 +255,6 @@ ChanUserContainer *Channel::FindUser(const User *u) const
|
||||
|
||||
bool Channel::HasUserStatus(const User *u, ChannelModeStatus *cms) const
|
||||
{
|
||||
if (!cms)
|
||||
return false;
|
||||
|
||||
/* Usually its more efficient to search the users channels than the channels users */
|
||||
ChanUserContainer *cc = u->FindChannel(this);
|
||||
if (cc)
|
||||
|
||||
Reference in New Issue
Block a user