If use_forward is off, ignore forwarding bans rather than stripping the channel.

We do not want to set $r:* if $r:*$* was requested.
This commit is contained in:
Jilles Tjoelker 2011-12-10 17:17:13 +01:00
parent 5efa7ef677
commit e238d01db9

View file

@ -879,8 +879,8 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
if(forward != NULL && MyClient(source_p)) if(forward != NULL && MyClient(source_p))
{ {
if(!ConfigChannel.use_forward) if(!ConfigChannel.use_forward)
forward = NULL; return;
else if(!check_forward(source_p, chptr, forward)) if(!check_forward(source_p, chptr, forward))
return; return;
/* Forwards only make sense for bans. */ /* Forwards only make sense for bans. */
if(mode_type != CHFL_BAN) if(mode_type != CHFL_BAN)