]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/xline.cpp
Use 'c' snomask instead of 'A' snomask for ldap auth failures, reported by drich.
[user/henk/code/inspircd.git] / src / xline.cpp
index 4bd3e51b587f85822410e645edc10f6aa9771446..a57f604c515df05cf3566d242053419c9f2ae1f2 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.
@@ -174,7 +174,11 @@ bool XLineManager::AddLine(XLine* line, User* user)
        ContainerIter x = lookup_lines.find(line->type);
        if (x != lookup_lines.end())
        {
-               return false;
+               LookupIter i = x->second.find(line->Displayable());
+               if (i != x->second.end())
+               {
+                       return false;
+               }
        }
 
        /*ELine* item = new ELine(ServerInstance, ServerInstance->Time(), duration, source, reason, ih.first.c_str(), ih.second.c_str());*/