]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonotice.cpp
Fix for bug #791, if an error is set treat this as 'could not get certificate'
[user/henk/code/inspircd.git] / src / modules / m_nonotice.cpp
index 9c02408cf97cf73462e734c8d6bfc6b100ee7e8c..a1092ab7ced6cbe73e57aa3405524828695297f4 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.
@@ -48,7 +48,7 @@ class ModuleNoNotice : public Module
                if ((target_type == TYPE_CHANNEL) && (IS_LOCAL(user)))
                {
                        Channel* c = (Channel*)dest;
-                       if (c->IsModeSet('T') || c->IsExtBanned(user, 'T'))
+                       if (c->IsModeSet('T') || c->GetExtBanStatus(user, 'T') < 0)
                        {
                                if (ServerInstance->ULine(user->server))
                                {