diff --git a/src/parse.c b/src/parse.c index 053c9bb..f9d7aee 100644 --- a/src/parse.c +++ b/src/parse.c @@ -63,8 +63,9 @@ parse_command(char * cmd) msgswp = remind(current_username); ircmsg("%s: %s", current_username, msgswp); } - else if (strcmp(cmd, "next") == 0) // TODO: implement - { ircmsg("%s: No future assignments", current_username); } + // XXX: maybe no? + //else if (strcmp(cmd, "next") == 0) // TODO: implement + //{ ircmsg("%s: No future assignments", current_username); } else if (strcmp(cmd, "dump") == 0) { ircmsg("%s: All projects:", current_username); @@ -72,7 +73,12 @@ parse_command(char * cmd) ircmsg(msgswp); } 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 { @@ -92,6 +98,7 @@ parse_command(char * cmd) msgswp = remind(creds.channel); ircmsg("%s: %s", current_username, msgswp); } + // XXX: what is this suppose to do? else if (strcmp(cmd, "submit") == 0) // TODO: implement { ircmsg("%s: Submitting project link '%s' to ", @@ -260,4 +267,4 @@ clean_admin_list() free(admins); admins = NULL; -} \ No newline at end of file +}