]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nopartmsg.cpp
Fix memory leak and invalid vtable location on unload of m_sslinfo
[user/henk/code/inspircd.git] / src / modules / m_nopartmsg.cpp
index 1b1316ae5cbec440c4bc7377e323e601bbb74d06..93160390744c5dd1e6156d5e4175a448da3a948f 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.
@@ -40,7 +40,7 @@ class ModulePartMsgBan : public Module
                if (!IS_LOCAL(user))
                        return;
 
-               if (channel->GetExtBanStatus(user, 'p') < 0)
+               if (channel->GetExtBanStatus(user, 'p') == MOD_RES_DENY)
                        partmessage = "";
 
                return;