static void banlist_unban (GtkWidget * wid, struct session *sess) { int num = 0; num += banlist_unban_inner (wid, sess, FALSE); num += banlist_unban_inner (wid, sess, TRUE); if (num < 1) { fe_message (_("You must select some bans."), FE_MSG_ERROR); return; } banlist_do_refresh (sess); }
static void banlist_unban (GtkWidget * wid, banlist_info *banl) { int i, num = 0; for (i = 0; i < MODE_CT; i++) num += banlist_unban_inner (wid, banl, i); /* This really should not occur with the redesign */ if (num < 1) { fe_message (_("You must select some bans."), FE_MSG_ERROR); return; } banlist_do_refresh (banl); }