This commit is contained in:
Emil 2023-08-17 06:13:30 -06:00
parent 6a01ac1834
commit cc1cd29c93
No known key found for this signature in database
GPG Key ID: 5432DB986FDBCF8A

View File

@ -253,7 +253,7 @@ parse_command(char const * cmd)
}
else if (strncmp(cmd, "vote", 4) == 0)
{
/* fprintf(stderr, "y%d n%d u%d vote_count %d\n", yes, no, undecided, vote_count); */
fprintf(stderr, "y%d n%d u%d vote_count %d\n", yes, no, undecided, vote_count);
if (vote_on && vote_count)
{
switch (*arg)
@ -268,9 +268,9 @@ parse_command(char const * cmd)
else
{
ircmsg(creds.channel, "poll results: %s",
MAX(undecided,MAX(yes,no)) ||
yes == no ? "UNDECIDED" :
MAX(yes,no) ? "PASSED" : "REJECTED");
MAX(undecided,MAX(yes,no)) ? "UNDECIDED" :
MAX(yes,no) ? "PASSED" :
yes == no ? "REJECTED" : " UNDECIDED");
vote_on = 0;
}
}