bandb: Don't apply empty ban list when bandb starts sending bans.

When bandb sends the ban list, it first sends 'C', then all bans and
finally 'F'. Only when 'F' is sent is ircd supposed to apply the bans.
Because of a missing break, 'C' also did 'F', clearing the ircd active
permanent bans until bandb sent 'F'.

The effect is pretty limited because having bandb send the ban list via
/rehash bans is uncommon and most bans will be enforced when reset.
This commit is contained in:
Jilles Tjoelker 2014-09-21 18:03:20 +02:00
parent 8c04f89623
commit 624d779127

View file

@ -424,6 +424,7 @@ bandb_parse(rb_helper *helper)
case 'C': case 'C':
bandb_handle_clear(); bandb_handle_clear();
break;
case 'F': case 'F':
bandb_handle_finish(); bandb_handle_finish();
break; break;