mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
allows check_rights to accept either mobs or clients.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user