diff --git a/src/irc.c b/src/irc.c index 18beee4..e3d3355 100644 --- a/src/irc.c +++ b/src/irc.c @@ -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; } }