Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
loganizer405 committed Apr 29, 2014
1 parent 97ee448 commit 357ffec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private void WebClient_DownloadStringCompleted(object sender, DownloadStringComp
args.Player.SendSuccessMessage("[TServerWeb] " + response.message);
break;
case "failure":
args.Player.SendErrorMessage("[TServerWeb] Vote failed! Your answer was incorrect, please try again.");
args.Player.SendErrorMessage("[TServerWeb] Vote failed! Please contact an administrator.");
SendError("Vote", response.message);
break;
case "captcha":
Expand All @@ -320,8 +320,12 @@ private void WebClient_DownloadStringCompleted(object sender, DownloadStringComp
doVote(args);
SendError("Vote", response.message);
break;
case "capchafail":
args.Player.SendErrorMessage("[TServerWeb] Vote failed! Reason: " + response.message);
break;
case "":
case null:
default:
args.Player.SendErrorMessage("[TServerWeb] Vote failed! Please contact an administrator.");
SendError("Connection", "Response is blank, something is wrong with connection. Please email [email protected] about this issue.");
break;
Expand Down

0 comments on commit 357ffec

Please sign in to comment.