X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/d3a1937f7eb8a1a2a1a3a80534119f9878a6e5d3..8c684fca9c7dbb4a2601628c744be9236ee68641:/chanserv/chancmds/banlist.c diff --git a/chanserv/chancmds/banlist.c b/chanserv/chancmds/banlist.c index a705eee5..f5288fb7 100644 --- a/chanserv/chancmds/banlist.c +++ b/chanserv/chancmds/banlist.c @@ -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);