]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_shun.cpp
Remove unneeded #ifdef IPV6 lines
[user/henk/code/inspircd.git] / src / modules / m_shun.cpp
index f65b89ccf407326341d6f55a0271afc8e1cb7e86..939807bd3f663ee8253cf0e21be16dbb7d51f184 100644 (file)
@@ -32,6 +32,10 @@ public:
 
        bool Matches(User *u)
        {
+               // E: overrides shun
+               if (u->exempt)
+                       return false;
+
                if (InspIRCd::Match(u->GetFullHost(), matchtext) || InspIRCd::Match(u->GetFullRealHost(), matchtext) || InspIRCd::Match(u->nick+"!"+u->ident+"@"+u->GetIPString(), matchtext))
                        return true;
 
@@ -187,7 +191,7 @@ class ModuleShun : public Module
 
                Implementation eventlist[] = { I_OnStats, I_OnPreCommand, I_OnUserConnect, I_OnRehash };
                ServerInstance->Modules->Attach(eventlist, this, 4);
-               OnRehash(NULL, "");
+               OnRehash(NULL);
        }
 
        virtual ~ModuleShun()
@@ -205,7 +209,7 @@ class ModuleShun : public Module
                return 1;
        }
 
-       virtual void OnRehash(User* user, const std::string &parameter)
+       virtual void OnRehash(User* user)
        {
                ConfigReader MyConf(ServerInstance);
                std::string cmds = MyConf.ReadValue("shun", "enabledcommands", 0);