mirror of
https://github.com/anope/anope.git
synced 2026-07-02 16:13:12 +02:00
Remove undefined behaviour around checking if this is null.
This commit is contained in:
+1
-2
@@ -629,8 +629,7 @@ void ChannelInfo::ClearLevels()
|
||||
|
||||
Anope::string ChannelInfo::GetIdealBan(User *u) const
|
||||
{
|
||||
int bt = this ? this->bantype : -1;
|
||||
switch (bt)
|
||||
switch (this->bantype)
|
||||
{
|
||||
case 0:
|
||||
return "*!" + u->GetVIdent() + "@" + u->GetDisplayedHost();
|
||||
|
||||
Reference in New Issue
Block a user