summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 456b6b5b1..767cb7caa 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -979,7 +979,10 @@ void purge_empty_chans(userrec* u)
{
log(DEBUG,"del_channel: destroyed: %s",i2->second->name);
if (i2->second)
+ {
+ FOREACH_MOD(I_OnChannelDelete,OnChannelDelete(i2->second));
delete i2->second;
+ }
chanlist.erase(i2);
purge++;
u->chans[i].channel = NULL;