Message inconsistency fixed
This commit is contained in:
parent
5b7f599a76
commit
4b2a66d6e2
@ -47,7 +47,7 @@ IRC_GREEN "!remind " IRC_STOP " : Prints your assignment\n"
|
||||
IRC_GREEN "!poll " IRC_STOP " : Start the democratic process (N message ...])\n"
|
||||
IRC_GREEN "!vote " IRC_STOP " : Casts a vote (y/n [message ...])\n"
|
||||
IRC_GREEN "!stop " IRC_STOP " : Stop the current polling\n"
|
||||
IRC_BLUE "!magic " IRC_STOP " : A random value at or below 100 or (N)\n";
|
||||
IRC_BLUE "!magic " IRC_STOP " : A random value at or below 100 or (N)\n";
|
||||
|
||||
DECL void parse_command(char const * cmd);
|
||||
DECL size_t parse_secondary_username(char const * msg);
|
||||
@ -257,7 +257,7 @@ parse_command(char const * cmd)
|
||||
if (!vote_count)
|
||||
{ ircmsg(creds.channel, "!poll NUMBER_OF_VOTES What your voting on ..."); }
|
||||
else
|
||||
{ ircmsg(creds.channel, "poll start"); }
|
||||
{ ircmsg(creds.channel, "poll: start"); }
|
||||
}
|
||||
else if (strncmp(cmd, "vote", 4) == 0)
|
||||
{
|
||||
@ -273,7 +273,7 @@ parse_command(char const * cmd)
|
||||
if (--vote_count)
|
||||
{ ircmsg(creds.channel, "Votes remaining: %d", vote_count - 1); }
|
||||
else
|
||||
{ ircmsg(creds.channel, "poll results: %s", MAX(yes,no) ? "PASSED" : "REJECTED"); }
|
||||
{ ircmsg(creds.channel, "poll: %s", MAX(yes,no) ? "PASSED" : "REJECTED"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user