]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_denychans.cpp
m_spanningtree Remove unneeded #includes
[user/henk/code/inspircd.git] / src / modules / m_denychans.cpp
index a96597acea3f85b8b5342bbc8185336e9d4aafb4..9d9296c25065403299e831f13330ff780ef189a1 100644 (file)
@@ -77,10 +77,6 @@ class ModuleDenyChannels : public Module
                }
        }
 
-       virtual ~ModuleDenyChannels()
-       {
-       }
-
        virtual Version GetVersion()
        {
                return Version("Implements config tags which allow blocking of joins to channels", VF_VENDOR);
@@ -94,7 +90,7 @@ class ModuleDenyChannels : public Module
                {
                        if (InspIRCd::Match(cname, j->second->getString("name")))
                        {
-                               if (IS_OPER(user) && j->second->getBool("allowopers"))
+                               if (user->IsOper() && j->second->getBool("allowopers"))
                                {
                                        return MOD_RES_PASSTHRU;
                                }