Skip to content

Commit

Permalink
Починена кнопка Show Player Notes (TauCetiStation#6224)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaiR authored Oct 15, 2020
1 parent 489b153 commit 40740c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/modules/admin/admin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ proc/message_admins(msg, reg_flag = R_ADMIN)
/datum/player_info/proc/get_days_timestamp()
return isnum(days_timestamp) ? days_timestamp : 0

/datum/admins/proc/show_player_notes(key as text)
/datum/admins/proc/show_player_notes(key)
if(!(check_rights(R_LOG) && check_rights(R_BAN)))
return

Expand Down
8 changes: 3 additions & 5 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -843,12 +843,10 @@ var/list/admin_verbs_hideable = list(
M.update_body()
M.check_dna(M)

/client/proc/show_player_notes()
/client/proc/show_player_notes(key as text)
set name = "Show Player Notes"
set category = "Admin"
if(holder)
holder.show_player_notes()
return
set category = "Logs"
holder?.show_player_notes(key)

/client/proc/free_slot()
set name = "Free Job Slot"
Expand Down

0 comments on commit 40740c1

Please sign in to comment.