From 84ec0903ee688c1f236efd73fc3954ed69104128 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 2 Dec 2021 10:23:05 +0000 Subject: [PATCH] Fix checking if `this` is null in regchannel. I can't see any places this might be called on a null pointer. --- src/regchannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regchannel.cpp b/src/regchannel.cpp index ffdf55bce..d4c52bee0 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");