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

View File

@ -140,7 +140,7 @@ event_channel(irc_session_t * lsession,
(void) message;
(void) count;
/* Logs the message */
printf(message);
printf("%s\n", message);
/* parses the command */
if (*message == PREFIX_COMMAND_CHAR)
{ current_username = get_username(origin); }
@ -268,7 +268,8 @@ parse_command(char const * cmd)
else
{
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");
vote_on = 0;
}