Merge pull request #5200 from TheDZD/admin-check-fixes

Assorted Admin Rights Check Fixes
This commit is contained in:
Fox McCloud
2016-07-26 03:38:25 -04:00
committed by GitHub
4 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -873,8 +873,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
set name = "Reset Telecomms Scripts"
set desc = "Blanks all telecomms scripts from all telecomms servers"
if(!holder || !holder.rights || !holder.rights & R_ADMIN)
to_chat(usr, "<span class='warning'>Admin only.</span>")
if(!check_rights(R_ADMIN, 1, src))
return
var/confirm = alert(src, "You sure you want to blank all NTSL scripts?", "Confirm", "Yes", "No")