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) 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,8 +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)) ? "UNDECIDED" : MAX(undecided,MAX(yes,no)) ||
MAX(yes,no) ? "PASSED" : "REJECTED"); yes == no ? "UNDECIDED" :
MAX(yes,no) ? "PASSED" : "REJECTED");
vote_on = 0; vote_on = 0;
} }
} }