diff options
| author | 2017-12-03 17:16:28 +0000 | |
|---|---|---|
| committer | 2017-12-10 12:38:45 +0000 | |
| commit | 98372c3cf2c1455e41c388d822876a4d146ae76d (patch) | |
| tree | e1f3403a7f16fab366e0304da84d9c10daf1a20e /src/channels.cpp | |
| parent | Clean up numeric usage in WHOIS and WHOWAS. (diff) | |
| download | inspircd++-98372c3cf2c1455e41c388d822876a4d146ae76d.tar.gz inspircd++-98372c3cf2c1455e41c388d822876a4d146ae76d.tar.bz2 inspircd++-98372c3cf2c1455e41c388d822876a4d146ae76d.zip | |
Extract RFC modes from the core to core_channel and core_user.
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 118a413a8..3bc58505c 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -349,6 +349,9 @@ bool Channel::IsBanned(User* user) return (result == MOD_RES_DENY); ListModeBase* banlm = static_cast<ListModeBase*>(*ban); + if (!banlm) + return false; + const ListModeBase::ModeList* bans = banlm->GetList(this); if (bans) { @@ -397,6 +400,9 @@ ModResult Channel::GetExtBanStatus(User *user, char type) return rv; ListModeBase* banlm = static_cast<ListModeBase*>(*ban); + if (!banlm) + return MOD_RES_PASSTHRU; + const ListModeBase::ModeList* bans = banlm->GetList(this); if (bans) { |
