Permalink
Browse files

Disallow submitting results without having a home level selected.

  • Loading branch information...
roncli committed Mar 7, 2017
1 parent a40922a commit 4bf850af589ca88af3092917438d5fe1f4ec76a1
Showing with 5 additions and 0 deletions.
  1. +5 −0 fusion.js
@@ -662,6 +662,11 @@ Fusion.discordMessages = {
return;
}
if (!eventMatch.homeSelected) {
Fusion.discordQueue("Sorry, " + user + ", but no home level has been set for your match. See the instructions in " + eventMatch.channel + " to get a home level selected for this match.", channel);
return;
}
score1 = +matches[1];
score2 = +matches[2];

0 comments on commit 4bf850a

Please sign in to comment.