]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nopartmsg.cpp
Allow commands to optionally route themselves using ENCAP
[user/henk/code/inspircd.git] / src / modules / m_nopartmsg.cpp
index 1576fdc01e7114d56ae7e9f90f139f2b9d0e56cf..50a6e14b9bc68097dabdf6caa62775bc12c92148 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -31,7 +31,7 @@ class ModulePartMsgBan : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_COMMON|VF_VENDOR, API_VERSION);
        }
 
 
@@ -40,7 +40,7 @@ class ModulePartMsgBan : public Module
                if (!IS_LOCAL(user))
                        return;
 
-               if (channel->IsExtBanned(user, 'p'))
+               if (channel->GetExtBanStatus(user, 'p') < 0)
                        partmessage = "";
 
                return;