Skip to content

Commit

Permalink
Meh, I forgot somethingg, yea, this is not going to work like I think…
Browse files Browse the repository at this point in the history
…... and creating new lists for every player... meh... messing around, NO
  • Loading branch information
Deleted user committed Jul 24, 2024
1 parent 959cfc9 commit 0e0fd2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/controllers/subsystem/who.dm
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,14 @@ SUBSYSTEM_DEF(who)
ui.set_autoupdate(TRUE)

/datum/player_list/ui_data(mob/user)
var/admin = CLIENT_IS_STAFF(user.client)
if(admin)
if(CLIENT_IS_STAFF(user.client))
. = list_admin_data
else
. = list_data
.["admin"] = admin

/datum/player_list/ui_static_data(mob/user)
. = list()
.["admin"] = CLIENT_IS_STAFF(user.client)

/datum/player_list/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
. = ..()
Expand Down

0 comments on commit 0e0fd2e

Please sign in to comment.