diff options
| author | Adam <Adam@anope.org> | 2013-02-14 20:58:01 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-02-14 20:58:01 -0500 |
| commit | fc1d7ea89b5beed96022499fe7fa86bef7cf2aad (patch) | |
| tree | 0208b9f5e153191742d15c51d6ca98737d8f7eb9 /modules/pseudoclients | |
| parent | 391f2822c8f6da7d6ffa8114817a8baf2aa265d5 (diff) | |
Switch Destroy methods to delete
Diffstat (limited to 'modules/pseudoclients')
| -rw-r--r-- | modules/pseudoclients/chanserv.cpp | 4 | ||||
| -rw-r--r-- | modules/pseudoclients/nickserv.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index 579c0b391..9832c622e 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -56,7 +56,7 @@ class ExpireCallback : public CallBack Log(LOG_NORMAL, "chanserv/expire") << "Expiring " << extra << "channel " << ci->name << " (founder: " << (ci->GetFounder() ? ci->GetFounder()->display : "(none)") << ")"; FOREACH_MOD(I_OnChanExpire, OnChanExpire(ci)); - ci->Destroy(); + delete ci; } } } @@ -142,7 +142,7 @@ class ChanServCore : public Module { Log(LOG_NORMAL, "chanserv/expire") << "Deleting channel " << ci->name << " owned by deleted nick " << nc->display; - ci->Destroy(); + delete ci; continue; } } diff --git a/modules/pseudoclients/nickserv.cpp b/modules/pseudoclients/nickserv.cpp index 55f8b07cd..7b1ccd80c 100644 --- a/modules/pseudoclients/nickserv.cpp +++ b/modules/pseudoclients/nickserv.cpp @@ -177,7 +177,7 @@ class ExpireCallback : public CallBack extra = "suspended "; Log(LOG_NORMAL, "expire") << "Expiring " << extra << "nickname " << na->nick << " (group: " << na->nc->display << ") (e-mail: " << (na->nc->email.empty() ? "none" : na->nc->email) << ")"; FOREACH_MOD(I_OnNickExpire, OnNickExpire(na)); - na->Destroy(); + delete na; } } } |
