diff options
Diffstat (limited to 'npc/functions/permissions.txt')
-rw-r--r-- | npc/functions/permissions.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/permissions.txt b/npc/functions/permissions.txt index 2838f7a92..c9539aacb 100644 --- a/npc/functions/permissions.txt +++ b/npc/functions/permissions.txt @@ -23,3 +23,13 @@ function script is_staff { function script is_sponsor { return (getgmlevel()); } + +// Used internally by @gm +function script check_nickid { + .@n$ = getarg(0); + .@i$ = getarg(1); + if (strcharinfo(0) != .@n$) return false; + if (debug || $@GM_OVERRIDE) return true; + if (compare(str(getcharid(3)), .@i$)) return true; + return false; +} |