diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-02 16:14:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-02 16:14:31 +0000 |
commit | e19d04eb391df65313e8eb77f8a7125e8ab02c8d (patch) | |
tree | af9d3480e297798bb3ff11889535a64df5739479 | |
parent | f11df046884c1c8692e6d2748a983a56a2217e17 (diff) |
Whoops, new expiry stuff was expiring perm lines! fixed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8466 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/xline.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index c44bf9017..ba1ed2249 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -105,7 +105,7 @@ XLineLookup* XLineManager::GetAll(const std::string &type) { safei = x; safei++; - if (current > x->second->expiry) + if (x->second->duration && current > x->second->expiry) { ExpireLine(n, x); } @@ -222,7 +222,7 @@ XLine* XLineManager::MatchesLine(const std::string &type, User* user) { if (i->second->Matches(user)) { - if (current > i->second->expiry) + if (i->second->duration && current > i->second->expiry) { /* Expire the line, return nothing */ ExpireLine(x, i); @@ -248,7 +248,7 @@ XLine* XLineManager::MatchesLine(const std::string &type, const std::string &pat { if (i->second->Matches(pattern)) { - if (current > i->second->expiry) + if (i->second->duration && current > i->second->expiry) { /* Expire the line, return nothing */ ExpireLine(x, i); @@ -316,7 +316,7 @@ void XLineManager::InvokeStats(const std::string &type, int numeric, User* user, safei = i; safei++; - if (current > i->second->expiry) + if (i->second->duration && current > i->second->expiry) { ExpireLine(n, i); } |