Read hashes are now converted to uppercase when checked to preserve computability with php's sha512 hashing.

This commit is contained in:
Lucas Nicodemus 2011-07-05 00:58:06 -06:00
parent 01c90dd269
commit 34d39bd8d3
2 changed files with 12 additions and 2 deletions

View file

@ -279,6 +279,9 @@ namespace TShockAPI
handler.Handled = true;
return;
}
if (!FileTools.OnWhitelist(player.IP))
{
Tools.ForceKick(player, "Not on whitelist.");
@ -551,7 +554,7 @@ namespace TShockAPI
private void OnSaveWorld(bool resettime, HandledEventArgs e)
{
Tools.Broadcast("Saving world, might lag.", Color.Red);
Tools.Broadcast("Saving world. Momentary lag might result from this.", Color.Red);
Thread SaveWorld = new Thread(Tools.SaveWorld);
SaveWorld.Start();
e.Handled = true;