Fix for an ages-old exploit.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2031 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-08-20 19:38:33 +00:00
parent bcc3bd5436
commit ebf4e0ad25
2 changed files with 6 additions and 0 deletions

View File

@@ -251,6 +251,9 @@
if (locked.Find(variable) && !(src.holder.rank in list("Game Master", "Game Admin")))
return
if (variable == "holder" && !holder.rank == "Game Master") //Hotfix, a bit ugly but that exploit has been there for ages and now somebody just had to go and tell everyone of it bluh bluh - U
return
if(isnull(var_value))
usr << "Unable to determine variable type."