summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-22 14:37:38 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-22 14:37:38 +0000
commit4efdfce66a255dd5ce2e2a940842ebfe9b02c651 (patch)
tree18e306f2d8a42ba146bce67155bcc3dc831e2107 /src
parent590dd9292f0d3cdd95c3ba1786ad8ff9487bb400 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/xline.cpp6
1 files changed, 5 insertions, 1 deletions
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());*/