]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
Add SHUN as a /filter action
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index 9b74b6f23f7e9c6d9618954d17ce0280199daed3..14ef11107c791fc14260d6f63d3d88d9fc3ed584 100644 (file)
@@ -45,6 +45,8 @@ class CommandTban : public Command
        bool IsBanSet(Channel* chan, const std::string& mask)
        {
                ListModeBase* banlm = static_cast<ListModeBase*>(*banmode);
+               if (!banlm)
+                       return false;
                const ListModeBase::ModeList* bans = banlm->GetList(chan);
                if (bans)
                {