]> jfr.im git - irc/quakenet/newserv.git/blobdiff - helpmod2/hchannel.c
Add documentation files.
[irc/quakenet/newserv.git] / helpmod2 / hchannel.c
index 0091eed1e9500e6c51f81458428192d91078b4f2..459a0c47496eccaffe15a4bb35834dbdbbf24f8d 100644 (file)
@@ -4,14 +4,6 @@
 #include <string.h>
 #include <ctype.h>
 
-#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))
             {