Fixed geoip crashing on startup if geoip.dat is missing. Also fixed it crashing if you enable it without restarting tshock.

This commit is contained in:
high 2011-09-05 22:07:51 -04:00
parent bedfc060e2
commit da91d56513
2 changed files with 5 additions and 4 deletions

View file

@ -48,7 +48,6 @@ namespace TShockAPI
object Status(RestVerbs verbs, IParameterCollection parameters)
{
if (TShock.Config.EnableTokenEndpointAuthentication)
return new RestObject("403") { Error = "Server settings require a token for this API call." };