1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 02:26:38 +02:00

Fixed deleting expired SXLines

This commit is contained in:
Adam
2010-12-23 00:03:50 -05:00
parent 839fb4e5f0
commit c7a44bfd8e
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -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;