Author: Carlo Wood (run@alinoe.com> (Via Isomer>
[ircu2.10.12-pk.git] / ircd / destruct_event.c
index a7412ff0e2e8dbeebd5341a69f91225d229b9622..799e6bdac7bbe2e748565fa8955856519cc6ad00 100644 (file)
@@ -25,6 +25,8 @@
 #include "ircd_alloc.h"
 #include "ircd.h"
 #include "ircd_events.h"
+#include "send.h"
+#include "msg.h"
 
 #include <assert.h>
 #include <stdlib.h>
@@ -126,6 +128,8 @@ void exec_expired_destruct_events(struct Event* ev)
     while (*list_bottom && TStime() >= (*list_bottom)->expires)
     {
       struct Channel* chptr = (*list_bottom)->chptr;
+      /* Send DESTRUCT message */
+      sendcmdto_serv_butone(&me, CMD_DESTRUCT, 0, "%s %Tu", chptr->chname, chptr->creationtime);
       remove_destruct_event(chptr);
       destruct_channel(chptr);
     }