diff --git a/src/irc.c b/src/irc.c index 45d0746..18beee4 100644 --- a/src/irc.c +++ b/src/irc.c @@ -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,8 +268,9 @@ parse_command(char const * cmd) else { ircmsg(creds.channel, "poll results: %s", - MAX(undecided,MAX(yes,no)) ? "UNDECIDED" : - MAX(yes,no) ? "PASSED" : "REJECTED"); + MAX(undecided,MAX(yes,no)) || + yes == no ? "UNDECIDED" : + MAX(yes,no) ? "PASSED" : "REJECTED"); vote_on = 0; } }