summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 307ffc21c..4bd3e51b5 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -170,18 +170,11 @@ bool XLineManager::AddLine(XLine* line, User* user)
if (line->duration && ServerInstance->Time() > line->expiry)
return false; // Don't apply expired XLines.
- /* If the line exists, check if its an expired line */
+ /* Don't apply duplicate xlines */
ContainerIter x = lookup_lines.find(line->type);
if (x != lookup_lines.end())
{
- LookupIter i = x->second.find(line->Displayable());
- if (i != x->second.end())
- {
- if (i->second->duration && ServerInstance->Time() > i->second->expiry)
- ExpireLine(x, i);
- else
- return false;
- }
+ return false;
}
/*ELine* item = new ELine(ServerInstance, ServerInstance->Time(), duration, source, reason, ih.first.c_str(), ih.second.c_str());*/