#include "client.h"
#include "hash.h"
#include "ircd.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "msg.h"
#include "channel.h"
#include "destruct_event.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <stdlib.h>
/*
* not been destructed and recreated in the meantime,
* this means that the normal synchronization rules
* account and we react as if we decided to destruct
- * the channel ourselfs: we destruct the channel and
+ * the channel ourselves: we destruct the channel and
* send a DESTRUCT in all directions.
* 2) The channel is not empty. In case we cannot remove
* it and do not propagate the DESTRUCT message. Instead
* then could have generated the DESTRUCT. In the meantime
* our user also left the channel. We can ignore the
* destruct because it comes from an 'area' that will
- * be overriden by our own CREATE: the state that generated
+ * be overridden by our own CREATE: the state that generated
* this DESTRUCT is 'history'.
*/
int ms_destruct(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
}
/* Pass on DESTRUCT message and ALSO bounce it back! */
- sendcmdto_serv_butone(sptr, CMD_DESTRUCT, 0, "%s %Tu", parv[1], chanTS);
+ sendcmdto_serv_butone(&me, CMD_DESTRUCT, 0, "%s %Tu", parv[1], chanTS);
/* Remove the empty channel. */
remove_destruct_event(chptr);