public void removeBan(String banmask) {
    String[] bans = new String[banlist.size()];
    banlist.toArray(bans);
    for (int i = 0; i < bans.length; i++)
      if (bans[i].startsWith(banmask))
        banlist.remove(bans[i]);
  }