diff options
author | Adam <Adam@sigterm.info> | 2023-05-28 21:25:02 -0400 |
---|---|---|
committer | Adam <Adam@sigterm.info> | 2023-05-28 21:26:03 -0400 |
commit | 66f37139cba97f2bb2a490376ffc33f153900b6c (patch) | |
tree | 8e36db8bfb468bcac8663eb462145d6a06fece45 /src/regchannel.cpp | |
parent | 0646547c9eecc464dfc3c6fb0c7dfa9a3298a268 (diff) |
regchannels: remove dependency on no-delete-null-pointer-checks
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index d420ab0df..984da55ab 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -355,7 +355,7 @@ NickCore *ChannelInfo::GetSuccessor() const BotInfo *ChannelInfo::WhoSends() const { - if (this && this->bi) + if (this->bi) return this->bi; BotInfo *ChanServ = Config->GetClient("ChanServ"); @@ -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(); |