Sfoglia il codice sorgente

Message inconsistency fixed

master
Emil 9 mesi fa
parent
commit
4b2a66d6e2
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 5432DB986FDBCF8A
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      src/irc.c

+ 3
- 3
src/irc.c Vedi File

@@ -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"); }
}
}
}