diff options
author | Adam <Adam@anope.org> | 2010-12-23 00:03:50 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-24 20:07:59 -0500 |
commit | c7a44bfd8eb98712a857beffec931e020a883161 (patch) | |
tree | e2952d5167a06e68012168f1ecd14ea9aab076e6 /src | |
parent | 839fb4e5f02acdb46136dbd13890ec9b3c93cf22 (diff) |
Fixed deleting expired SXLines
Diffstat (limited to 'src')
-rw-r--r-- | src/operserv.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp index ff1862503..82a606b90 100644 --- a/src/operserv.cpp +++ b/src/operserv.cpp @@ -297,6 +297,8 @@ bool XLineManager::DelXLine(XLine *x) if (it != this->XLines.end()) { + this->Del(x); + delete x; this->XLines.erase(it); @@ -427,7 +429,8 @@ XLine *XLineManager::Check(User *u) if (x->Expires && x->Expires < Anope::CurTime) { - OnExpire(x); + this->OnExpire(x); + this->Del(x); delete x; this->XLines.erase(XLines.begin() + i - 1); continue; |