From 4efdfce66a255dd5ce2e2a940842ebfe9b02c651 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 22 Feb 2009 14:37:38 +0000 Subject: In retrospect, not allowing *any* XLines to be set was pretty fucking stupid. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11141 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xline.cpp b/src/xline.cpp index 4bd3e51b5..f6fc8af0a 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -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());*/ -- cgit v1.2.3