allows check_rights to accept either mobs or clients.

This commit is contained in:
NullSnapshot
2016-08-12 21:48:52 +01:00
committed by Yoshax
parent 3345ac5cd1
commit e987e2f0c4
3 changed files with 18 additions and 14 deletions
+2 -2
View File
@@ -38,13 +38,13 @@
/obj/item/weapon/paper/admin/proc/generateHeader()
var/originhash = md5("[origin]")
var/challengehash = copytext(md5("[game_id]"),1,10) // changed to a hash of the game ID so it's more consistant but changes every round.
var/timehash = copytext(md5("[world.time]"),1,10)
var/text = null
//TODO change logo based on who you're contacting.
text = "<center><img src = ntlogo.png></br>"
text += "<b>[origin] Quantum Uplink Signed Message</b><br>"
text += "<font size = \"1\">Encryption key: [originhash]<br>"
text += "Challenge: [challengehash]<br></font></center><hr>"
text += "Challenge: [timehash]<br></font></center><hr>"
header = text
+1 -1
View File
@@ -201,6 +201,6 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins
msg += "Receiving '[sent.name]' via secure connection ... <a href='?_src_=holder;AdminFaxView=\ref[sent]'>view message</a></span>"
for(var/client/C in admins)
if((R_ADMIN | R_MOD) & C.holder.rights)
if(check_rights((R_ADMIN|R_MOD),0,C))
C << msg
C << 'sound/effects/printer.ogg'