Fix silence bugs found by coekie and ban application bug found by xplora.
[ircu2.10.12-pk.git] / ircd / channel.c
index 4821c4eb878e37603c8a74ca2a799b5ab39c15f5..a593438595df47040b5084914d160d8c803f6675 100644 (file)
@@ -2787,7 +2787,7 @@ mode_parse_ban(struct ParseState *state, int *flag_p)
   newban = state->banlist + (state->numbans++);
   newban->next = 0;
   newban->flags = ((state->dir == MODE_ADD) ? BAN_ADD : BAN_DEL)
-      | (*flag_p == 'b' ? 0 : BAN_EXCEPTION);
+      | (*flag_p == MODE_BAN ? 0 : BAN_EXCEPTION);
   newban->banstr = NULL;
   set_ban_mask(newban, collapse(pretty_mask(t_str)));
   newban->who = cli_name(state->sptr);