]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_allowinvite.cpp
The module hook is kinda required.
[user/henk/code/inspircd.git] / src / modules / m_allowinvite.cpp
index f137598e2b40facc95c3c7d13f2b521350e14635..e32c39082664f221bda9a60c1498ae267314fb04 100644 (file)
@@ -44,7 +44,7 @@ class ModuleAllowInvite : public Module
        {
                if (IS_LOCAL(user))
                {
-                       if (channel->IsModeSet('A') || channel->IsExtBanned(user, 'A'))
+                       if (channel->IsModeSet('A') && !channel->IsExtBanned(user, 'A'))
                        {
                                // Explicitly allow /invite
                                return -1;
@@ -62,7 +62,7 @@ class ModuleAllowInvite : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version("$Id$",VF_COMMON|VF_VENDOR,API_VERSION);
        }
 };