]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/chancmds/banlist.c
CHANSERV: better batcher error handling for expired accounts/accounts with no email.
[irc/quakenet/newserv.git] / chanserv / chancmds / banlist.c
index a705eee57bac4cd359edb03c2c09aad41e9f0700..f5288fb7652c3e9902022f90c5fd571f30fa316b 100644 (file)
@@ -11,7 +11,7 @@
  * CMDHELP: Displays a list of persistent and channel bans on the named channel.  Each ban
  * CMDHELP: is identified by a number which can be passed to a subsequent BANDEL command.
  * CMDHELP: Note that the numbers can change if bans are added to or removed from the 
- * CMDHELP: chennel. Where:
+ * CMDHELP: channel. Where:
  * CMDHELP: channel - the channel to use
  * CMDHELP: BANLIST requires operator (+o) access on the named channel.
  */
@@ -47,7 +47,7 @@ int csc_dobanlist(void *source, int cargc, char **cargv) {
 
   rcp=cip->exts[chanservext];
   
-  if (rcp->bans || cip->channel->bans) {
+  if (rcp->bans || (cip->channel && cip->channel->bans)) {
     chanservstdmessage(sender, QM_REGBANHEADER, cip->name->content);
     for(rbp=rcp->bans;rbp;rbp=rbp->next) {
       rup=findreguserbyID(rbp->setby);