diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-24 13:28:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-24 13:28:07 +0000 |
commit | 5d407fb44c759524881712a80febb86b4506ddbf (patch) | |
tree | f0f426e645518a859ad25284f478854818a92da8 /src/channels.cpp | |
parent | 009c5b0562c280743033ea6ca2e673201a8e218c (diff) |
delete operator tracking in debug mode (using a macro -- live with it.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index f07ad01bd..61d82a451 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -414,7 +414,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri if (n != chanlist.end()) { Ptr->DelUser(user); - delete Ptr; + DELETE(Ptr); chanlist.erase(n); for (unsigned int index =0; index < user->chans.size(); index++) { @@ -529,7 +529,7 @@ chanrec* del_channel(userrec *user, const char* cname, const char* reason, bool { log(DEBUG,"del_channel: destroyed: %s",Ptr->name); FOREACH_MOD(I_OnChannelDelete,OnChannelDelete(Ptr)); - delete Ptr; + DELETE(Ptr); chanlist.erase(iter); } } @@ -579,8 +579,8 @@ void server_kick_channel(userrec* user, chanrec* Ptr, char* reason, bool trigger if (iter != chanlist.end()) { log(DEBUG,"del_channel: destroyed: %s",Ptr->name); - FOREACH_MOD(I_OnChannelDelete,OnChannelDelete(Ptr)); - delete Ptr; + FOREACH_MOD(I_OnChannelDelete,OnChannelDelete(Ptr)); + DELETE(Ptr); chanlist.erase(iter); } } @@ -665,7 +665,7 @@ void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason) { log(DEBUG,"del_channel: destroyed: %s",Ptr->name); FOREACH_MOD(I_OnChannelDelete,OnChannelDelete(Ptr)); - delete Ptr; + DELETE(Ptr); chanlist.erase(iter); } } |