X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/26cbd0999d84e80dc93d01bc7cc432b00c1b3f06..3898f97325dbed800d4b424e68a0c2858b8d8be7:/helpmod2/hchannel.c diff --git a/helpmod2/hchannel.c b/helpmod2/hchannel.c index 0091eed1..459a0c47 100644 --- a/helpmod2/hchannel.c +++ b/helpmod2/hchannel.c @@ -4,14 +4,6 @@ #include #include -#include "../lib/sstring.h" -#include "../lib/irc_string.h" -#include "../channel/channel.h" -#include "../localuser/localuserchannel.h" -#include "../core/schedule.h" -#include "../nick/nick.h" - - #include "hchannel.h" #include "haccount.h" #include "helpmod.h" @@ -110,7 +102,7 @@ int hchannel_del(hchannel *hchan) while (hchan->htickets) hticket_del(hchan->htickets, hchan); - localpartchannel(helpmodnick, hchan->real_channel); + localpartchannel(helpmodnick, hchan->real_channel, "Channel Removed"); free(hchan); @@ -339,6 +331,7 @@ void hchannels_dnmo(struct huser_struct *husr) break; } *hchanuser = tmp; + assert(*hchanuser != NULL); (*hchanuser)->next = NULL; if (on_desk(husr, huserchan)) {