1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 17:23:12 +02:00

regchannels: remove dependency on no-delete-null-pointer-checks

This commit is contained in:
Adam
2023-05-28 21:25:02 -04:00
parent 0646547c9e
commit 66f37139cb
12 changed files with 39 additions and 18 deletions
+2 -3
View File
@@ -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();