Returns the SHA1 hash of a Lua script from instances of ServerEval.

This commit is contained in:
Daniele Alessandri
2011-12-01 08:49:42 +01:00
parent 64119bb4a0
commit 1ae30d62db
+10
View File
@@ -46,4 +46,14 @@ class ServerEval extends Command
{
return false;
}
/**
* Calculates the SHA1 hash of the body of the script.
*
* @return string SHA1 hash.
*/
public function getScriptHash()
{
returns sha1($this->getArgument(0));
}
}