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:
parent
5efa7ef677
commit
e238d01db9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue