Hotfix 2
This commit is contained in:
parent
19b55a6873
commit
6a01ac1834
@ -140,7 +140,7 @@ event_channel(irc_session_t * lsession,
|
|||||||
(void) message;
|
(void) message;
|
||||||
(void) count;
|
(void) count;
|
||||||
/* Logs the message */
|
/* Logs the message */
|
||||||
printf(message);
|
printf("%s\n", message);
|
||||||
/* parses the command */
|
/* parses the command */
|
||||||
if (*message == PREFIX_COMMAND_CHAR)
|
if (*message == PREFIX_COMMAND_CHAR)
|
||||||
{ current_username = get_username(origin); }
|
{ current_username = get_username(origin); }
|
||||||
@ -268,7 +268,8 @@ parse_command(char const * cmd)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ircmsg(creds.channel, "poll results: %s",
|
ircmsg(creds.channel, "poll results: %s",
|
||||||
MAX(undecided,MAX(yes,no)) ? "UNDECIDED" :
|
MAX(undecided,MAX(yes,no)) ||
|
||||||
|
yes == no ? "UNDECIDED" :
|
||||||
MAX(yes,no) ? "PASSED" : "REJECTED");
|
MAX(yes,no) ? "PASSED" : "REJECTED");
|
||||||
vote_on = 0;
|
vote_on = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user