THERE'S NO ANTIDOTE

This commit is contained in:
Michael VanOverbeek 2017-06-13 20:21:00 +00:00
parent 037a86cd41
commit 7dcde1c752

View file

@ -215,32 +215,6 @@ namespace ShiftOS.Server
WriteEncFile(savefile, JsonConvert.SerializeObject(save));
}
var wr = HttpWebRequest.Create(UserConfig.Get().UniteUrl + "/API/GetCodepoints");
wr.Headers.Add("Authentication: Token " + save.UniteAuthToken);
try
{
using (var resp = wr.GetResponse())
{
using (var str = resp.GetResponseStream())
{
using (var reader = new StreamReader(str))
{
Console.WriteLine("This user has " + reader.ReadToEnd() + " Codepoint(s).");
}
}
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
Program.server.DispatchTo(new Guid(guid), new NetObject("auth_failed", new ServerMessage
{
Name = "mud_login_denied",
GUID = "server"
}));
return;
}
Program.server.DispatchTo(new Guid(guid), new NetObject("mud_savefile", new ServerMessage
{
Name = "mud_savefile",