Hotfix 3
This commit is contained in:
parent
6a01ac1834
commit
cc1cd29c93
@ -253,7 +253,7 @@ parse_command(char const * cmd)
|
|||||||
}
|
}
|
||||||
else if (strncmp(cmd, "vote", 4) == 0)
|
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)
|
if (vote_on && vote_count)
|
||||||
{
|
{
|
||||||
switch (*arg)
|
switch (*arg)
|
||||||
@ -268,9 +268,9 @@ parse_command(char const * cmd)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ircmsg(creds.channel, "poll results: %s",
|
ircmsg(creds.channel, "poll results: %s",
|
||||||
MAX(undecided,MAX(yes,no)) ||
|
MAX(undecided,MAX(yes,no)) ? "UNDECIDED" :
|
||||||
yes == no ? "UNDECIDED" :
|
MAX(yes,no) ? "PASSED" :
|
||||||
MAX(yes,no) ? "PASSED" : "REJECTED");
|
yes == no ? "REJECTED" : " UNDECIDED");
|
||||||
vote_on = 0;
|
vote_on = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user