]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/helpfile.c
This should fix the nickserv module complaining about not enough parameters when...
[irc/evilnet/x3.git] / src / helpfile.c
index fcd94cde1d6b2f0bdc07625c6fee8dbc41c0118b..c97eb135f8afd023936b6b07037a8d91dd21c17a 100644 (file)
@@ -366,10 +366,10 @@ table_send(struct userNode *from, const char *to, unsigned int size, irc_send_fu
         sepstr = malloc(sepsize + 1);
         memset(sepstr, '-', sepsize);
         sepstr[sepsize] = 0;
-        if(hi->userlist_style != HI_STYLE_CLEAN)
+        if(hi && hi->userlist_style != HI_STYLE_CLEAN)
             irc_send(from, to, sepstr); /* ----------------- */
         irc_send(from, to, line);   /* alpha  beta   roe */
-        if(hi->userlist_style != HI_STYLE_CLEAN)
+        if(hi && hi->userlist_style != HI_STYLE_CLEAN)
             irc_send(from, to, sepstr); /* ----------------- */
         ii = 1;
     }
@@ -406,7 +406,7 @@ table_send(struct userNode *from, const char *to, unsigned int size, irc_send_fu
            sepstr[sepsize/2+1]= 'd';
         }
 
-        if(hi->userlist_style != HI_STYLE_CLEAN)
+        if(hi && hi->userlist_style != HI_STYLE_CLEAN)
             irc_send(from, to, sepstr);
         free(sepstr);
     }