Merge pull request #4451 from Citadel-Station-13/upstream-merge-33599

[MIRROR] Callback security and usr
This commit is contained in:
deathride58
2017-12-21 03:29:13 +00:00
committed by GitHub
3 changed files with 38 additions and 3 deletions
+8
View File
@@ -1508,6 +1508,14 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
return "\[[url_encode(thing.tag)]\]"
return "\ref[input]"
// Makes a call in the context of a different usr
// Use sparingly
/world/proc/PushUsr(mob/M, datum/callback/CB)
var/temp = usr
usr = M
. = CB.Invoke()
usr = temp
//Returns a list of all servants of Ratvar and observers.
/proc/servants_and_ghosts()
. = list()