hook up reroll
This commit is contained in:
parent
677b9ed665
commit
6dc73611a6
15
src/parse.c
15
src/parse.c
@ -63,8 +63,9 @@ parse_command(char * cmd)
|
|||||||
msgswp = remind(current_username);
|
msgswp = remind(current_username);
|
||||||
ircmsg("%s: %s", current_username, msgswp);
|
ircmsg("%s: %s", current_username, msgswp);
|
||||||
}
|
}
|
||||||
else if (strcmp(cmd, "next") == 0) // TODO: implement
|
// XXX: maybe no?
|
||||||
{ ircmsg("%s: No future assignments", current_username); }
|
//else if (strcmp(cmd, "next") == 0) // TODO: implement
|
||||||
|
//{ ircmsg("%s: No future assignments", current_username); }
|
||||||
else if (strcmp(cmd, "dump") == 0)
|
else if (strcmp(cmd, "dump") == 0)
|
||||||
{
|
{
|
||||||
ircmsg("%s: All projects:", current_username);
|
ircmsg("%s: All projects:", current_username);
|
||||||
@ -72,7 +73,12 @@ parse_command(char * cmd)
|
|||||||
ircmsg(msgswp);
|
ircmsg(msgswp);
|
||||||
}
|
}
|
||||||
else if (strcmp(cmd, "reroll") == 0) // TODO: implement
|
else if (strcmp(cmd, "reroll") == 0) // TODO: implement
|
||||||
{ ircmsg("%s: No more rerolls possible", current_username); }
|
{
|
||||||
|
ircmsg("%s: Rerolling...", current_username);
|
||||||
|
purge_assignments(current_username);
|
||||||
|
random_assign(current_username);
|
||||||
|
ircmsg(remind(current_username));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -92,6 +98,7 @@ parse_command(char * cmd)
|
|||||||
msgswp = remind(creds.channel);
|
msgswp = remind(creds.channel);
|
||||||
ircmsg("%s: %s", current_username, msgswp);
|
ircmsg("%s: %s", current_username, msgswp);
|
||||||
}
|
}
|
||||||
|
// XXX: what is this suppose to do?
|
||||||
else if (strcmp(cmd, "submit") == 0) // TODO: implement
|
else if (strcmp(cmd, "submit") == 0) // TODO: implement
|
||||||
{
|
{
|
||||||
ircmsg("%s: Submitting project link '%s' to <random janny>",
|
ircmsg("%s: Submitting project link '%s' to <random janny>",
|
||||||
@ -260,4 +267,4 @@ clean_admin_list()
|
|||||||
|
|
||||||
free(admins);
|
free(admins);
|
||||||
admins = NULL;
|
admins = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user