From 98372c3cf2c1455e41c388d822876a4d146ae76d Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 3 Dec 2017 17:16:28 +0000 Subject: Extract RFC modes from the core to core_channel and core_user. --- src/modules/m_timedbans.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/m_timedbans.cpp') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 9b74b6f23..14ef11107 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -45,6 +45,8 @@ class CommandTban : public Command bool IsBanSet(Channel* chan, const std::string& mask) { ListModeBase* banlm = static_cast(*banmode); + if (!banlm) + return false; const ListModeBase::ModeList* bans = banlm->GetList(chan); if (bans) { -- cgit v1.3.1-10-gc9f91