1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 17:36:37 +02:00

Switch Destroy methods to delete

This commit is contained in:
Adam
2013-02-14 20:58:01 -05:00
parent 391f2822c8
commit fc1d7ea89b
32 changed files with 62 additions and 62 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ class CommandOSSeen : public Command
if (time < buf->second->last)
{
Log(LOG_DEBUG) << buf->first << " was last seen " << Anope::strftime(buf->second->last) << ", deleting entry";
buf->second->Destroy();
delete buf->second;
database.erase(buf);
counter++;
}
@@ -309,7 +309,7 @@ class DataBasePurger : public CallBack
if ((Anope::CurTime - cur->second->last) > purgetime)
{
Log(LOG_DEBUG) << cur->first << " was last seen " << Anope::strftime(cur->second->last) << ", purging entries";
cur->second->Destroy();
delete cur->second;
database.erase(cur);
}
}