diff options
author | Sadie Powell <sadie@witchery.services> | 2021-12-02 10:23:05 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-12-02 10:23:05 +0000 |
commit | 84ec0903ee688c1f236efd73fc3954ed69104128 (patch) | |
tree | 82ef0168a4e8acc06f75f0defd3942fa7d45f93b /src/regchannel.cpp | |
parent | 754c82d047b80c30ff2f775d32e8b9b054049ebd (diff) |
Fix checking if `this` is null in regchannel.
I can't see any places this might be called on a null pointer.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |