mirror of
https://github.com/anope/anope.git
synced 2026-06-27 17:06:39 +02:00
Remove undefined behaviour around checking if this is null.
This commit is contained in:
+1
-1
@@ -912,7 +912,7 @@ bool Channel::CheckKick(User *user)
|
||||
return false;
|
||||
|
||||
if (mask.empty())
|
||||
mask = this->ci->GetIdealBan(user);
|
||||
mask = this->ci ? this->ci->GetIdealBan(user) : "*!*@" + user->GetDisplayedHost();
|
||||
if (reason.empty())
|
||||
reason = Language::Translate(user->Account(), CHAN_NOT_ALLOWED_TO_JOIN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user