From 3b6e5236bf1b27848218b8e1d383a5e8407b2e2b Mon Sep 17 00:00:00 2001 From: Nich Date: Fri, 1 Jun 2018 15:26:21 +0200 Subject: [PATCH] allows changing the rank of players in the playerpanel (#38172) * allows changing the rank of players in the playerpanel * Update permissionedit.dm * Update permissionedit.dm --- code/modules/admin/admin.dm | 2 +- code/modules/admin/permissionedit.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index a37e7217af..d67bbfd6c5 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -29,7 +29,7 @@ body += "Options panel for [M]" if(M.client) body += " played by [M.client] " - body += "\[[M.client.holder ? M.client.holder.rank : "Player"]\]" + body += "\[[M.client.holder ? M.client.holder.rank : "Player"]\]" if(CONFIG_GET(flag/use_exp_tracking)) body += "\[" + M.client.get_exp_living() + "\]" diff --git a/code/modules/admin/permissionedit.dm b/code/modules/admin/permissionedit.dm index e237a18f6a..c1fcf0ce82 100644 --- a/code/modules/admin/permissionedit.dm +++ b/code/modules/admin/permissionedit.dm @@ -165,7 +165,7 @@ return switch(task) if("add") - admin_ckey = add_admin(null, use_db) + admin_ckey = add_admin(admin_ckey, use_db) if(!admin_ckey) return change_admin_rank(admin_ckey, use_db)