* 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.
*/
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);