]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_allowinvite.cpp
Maxpara on these was 3, should be 2
[user/henk/code/inspircd.git] / src / modules / m_allowinvite.cpp
index f137598e2b40facc95c3c7d13f2b521350e14635..a675a0cc8e7177395ef99fa07d4840c23dab4b60 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -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);
        }
 };