summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@sigterm.info>2023-05-28 21:25:02 -0400
committerAdam <Adam@sigterm.info>2023-05-28 21:26:03 -0400
commit66f37139cba97f2bb2a490376ffc33f153900b6c (patch)
tree8e36db8bfb468bcac8663eb462145d6a06fece45 /src/regchannel.cpp
parent0646547c9eecc464dfc3c6fb0c7dfa9a3298a268 (diff)
regchannels: remove dependency on no-delete-null-pointer-checks
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp5
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();