diff --git a/src/chmode.c b/src/chmode.c index e2c05b3ef..373be2160 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -882,6 +882,9 @@ chm_ban(struct Client *source_p, struct Channel *chptr, forward = NULL; else if(!check_forward(source_p, chptr, forward)) return; + /* Forwards only make sense for bans. */ + if(mode_type != CHFL_BAN) + return; } /* dont allow local clients to overflow the banlist, dont