Skip to content

Commit

Permalink
I think it works?
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Nov 30, 2023
1 parent 903f7dc commit d1e57b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ GLOBAL_LIST_INIT(admin_verbs_default, list(
/client/proc/togglenichelogs,
/datum/admins/proc/display_tags,
/datum/admins/proc/player_notes_show,
/datum/admins/proc/check_ckey,
/datum/admins/proc/toggleooc, /*toggles ooc on/off for everyone*/
/datum/admins/proc/togglelooc, /*toggles ooc on/off for everyone*/
/datum/admins/proc/toggledsay, /*toggles dsay on/off for everyone*/
Expand Down
14 changes: 14 additions & 0 deletions code/modules/admin/tabs/admin_tab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,20 @@
dat += "</body></html>"
show_browser(usr, dat, "Admin record for [key]", "adminplayerinfo", "size=480x480")

/datum/admins/proc/check_ckey(target_key as text)
set name = "Check CKey"
set category = "Admin"

if (!istype(src,/datum/admins))
src = usr.client.admin_holder
if (!istype(src,/datum/admins) || !(src.rights & R_MOD))
to_chat(usr, "Error: you are not an admin!")
return
if(!target_key)
return

analyze_ckey(target_key)

/datum/admins/proc/sleepall()
set name = "Sleep All"
set category = "Admin.InView"
Expand Down

0 comments on commit d1e57b9

Please sign in to comment.