Fixes missing/broken admin permission checks

Also fixes a small issue with the permissions panel, because the error
message was really annoying me.
This commit is contained in:
Krausus
2015-06-08 07:55:29 -04:00
parent 075f89fcb0
commit a7eea3487f
6 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -117,7 +117,7 @@
if(istype(M, /mob/new_player))
continue
if(M.client && M.client.holder && (M.client.holder.rights & R_ADMIN|R_MOD) && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to admins/mods
if(M.client && M.client.holder && (M.client.holder.rights & (R_ADMIN|R_MOD)) && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to admins/mods
M << message
else if(M.stat == DEAD && (M.client.prefs.toggles & CHAT_DEAD)) // Show the emote to regular ghosts with deadchat toggled on