X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fxline.cpp;h=f6fc8af0ae6e701f12086c4cd73111edc9cb0625;hb=4d42d544584875d0d71dab99f6785ac98324b971;hp=307ffc21c7f3e1a10d6457c45303ab310eaf15ab;hpb=2497f6da2f34104f57a70a1720e903edbd828c85;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/xline.cpp b/src/xline.cpp index 307ffc21c..f6fc8af0a 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -170,17 +170,14 @@ 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; } }