Fixes admin topics

This commit is contained in:
AnturK
2017-09-10 00:12:52 +02:00
committed by CitadelStationBot
parent 1769b0272a
commit dc2c9fb07d

View File

@@ -1,3 +1,19 @@
<<<<<<< HEAD
=======
/datum/admins/proc/CheckAdminHref(href, href_list)
var/auth = href_list["admin_token"]
. = auth && (auth == href_token || auth == GLOB.href_token)
if(.)
return
var/msg = !auth ? "no" : "a bad"
message_admins("[key_name_admin(usr)] clicked an href with [msg] authorization key!")
if(config.debug_admin_hrefs)
message_admins("Debug mode enabled, call not blocked. Please ask your coders to review this round's logs.")
log_world("UAH: [href]")
return TRUE
log_admin_private("[key_name(usr)] clicked an href with [msg] authorization key! [href]")
>>>>>>> 1204251... Fixes admin topics (#30554)
/datum/admins/Topic(href, href_list)
..()