1
0
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:
Sadie Powell
2021-11-30 10:54:10 +00:00
parent 17fa704278
commit 754c82d047
6 changed files with 17 additions and 35 deletions
+1 -2
View File
@@ -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();