Ok, cool. That sounds like the best solution for vote control.
Have a list of people that are allowed to vote and to count the vote, user in the list have to be authenticated with IRCd.
Now onto the next problem: how to actually count the votes. Since it'll be a controlled list, the way I see it, percentage is the best way to go.
Did some calculating and the way I see it, for the bot to be effective, there will have to be at least 5 users in the channel (bot included).
* 2 users: 1 bot, 1 human -> no go, bot cannot ban itself, person who initiated the command cannot vote.
* 3 users: 1 bot, 2 humans -> no go, person who initiated the command cannot vote.
* 4 users: 1 bot, 3 humans -> no go, person who initiated the command cannot vote, 1 human makes 100%.
* 5 users: 1 bot, 4 humans -> good, 1 human will be 50%. 1 to initiate the voting, 1 to be banned, 2 to vote.
So at least 4 people must be in the channel. I'll try to round up to less the vote count, let's say if 7 humans are in the channel, so then 50% would be 3.5 votes. I will round it down to 3 votes (if possible) to get a lesser vote count.