"
dat += "| [T.title] |
"
diff --git a/code/defines/procs/admin.dm b/code/defines/procs/admin.dm
index 23b485ad252..fa5556b4e40 100644
--- a/code/defines/procs/admin.dm
+++ b/code/defines/procs/admin.dm
@@ -42,11 +42,11 @@
if(key)
if(C && C.holder && C.holder.fakekey && !include_name)
if(include_link)
- . += ""
+ . += ""
. += "Administrator"
else
if(include_link && C)
- . += ""
+ . += ""
. += key
if(include_link)
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index 07dd4975ddb..45971e6993e 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -85,7 +85,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
body += "VV - "
body += "[ADMIN_TP(M,"TP")] - "
if(M.client)
- body += "PM - "
+ body += "PM - "
body += "[ADMIN_SM(M,"SM")] - "
if(ishuman(M) && M.mind)
body += "HM -"
diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm
index b3957a86b44..0802e6e8b1a 100644
--- a/code/modules/admin/admin_verbs.dm
+++ b/code/modules/admin/admin_verbs.dm
@@ -420,13 +420,8 @@ GLOBAL_LIST_INIT(admin_verbs_ticket, list(
feedback_add_details("admin_verb","S") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return
-/client/proc/findStealthKey(txt)
- if(txt)
- for(var/P in GLOB.stealthminID)
- if(GLOB.stealthminID[P] == txt)
- return P
- txt = GLOB.stealthminID[ckey]
- return txt
+/client/proc/getStealthKey()
+ return GLOB.stealthminID[ckey]
/client/proc/createStealthKey()
var/num = (rand(0,1000))
diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm
index c2248261baa..220b1086172 100644
--- a/code/modules/admin/player_panel.dm
+++ b/code/modules/admin/player_panel.dm
@@ -305,7 +305,7 @@
[M_name] - [M_rname] - [M_key] ([M_job])
@@ -342,7 +342,7 @@
dname = M
return {" | | [dname][caption][logout_status][istype(A, /area/security/permabrig) ? " (PERMA) " : ""][M.stat == 2 ? " (DEAD)" : ""] |
- PM [ADMIN_FLW(M, "FLW")] | [close ? "
" : ""]"}
+ PM [ADMIN_FLW(M, "FLW")] | [close ? "" : ""]"}
/datum/admins/proc/check_antagonists()
if(!check_rights(R_ADMIN))
@@ -418,7 +418,7 @@
var/mob/M = blob.current
if(M)
dat += "| [ADMIN_PP(M,"[M.real_name]")][M.client ? "" : " (ghost)"][M.stat == 2 ? " (DEAD)" : ""] | "
- dat += "PM | "
+ dat += "PM | "
else
dat += "
| Blob not found! |
"
dat += "
"
diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm
index ce5f06053eb..48c407e6866 100644
--- a/code/modules/admin/verbs/adminpm.dm
+++ b/code/modules/admin/verbs/adminpm.dm
@@ -64,9 +64,7 @@
var/client/C
if(istext(whom))
- if(cmptext(copytext(whom,1,2),"@"))
- whom = findStealthKey(whom)
- C = GLOB.directory[whom]
+ C = get_client_by_ckey(whom)
else if(istype(whom,/client))
C = whom
diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm
index ea099ea53b3..b5f5c51ba59 100644
--- a/code/modules/client/client procs.dm
+++ b/code/modules/client/client procs.dm
@@ -108,13 +108,9 @@
//Admin PM
if(href_list["priv_msg"])
- var/client/C = locate(href_list["priv_msg"])
+ var/ckey_txt = href_list["priv_msg"]
- if(!C) // Might be a stealthmin ID, so pass it in straight
- C = href_list["priv_msg"]
- else if(C.UID() != href_list["priv_msg"])
- C = null // 404 client not found. Let cmd_admin_pm handle the error
- cmd_admin_pm(C, null, href_list["type"])
+ cmd_admin_pm(ckey_txt, null, href_list["type"])
return
if(href_list["irc_msg"])
diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm
index c222f76eadb..639f3da7aaf 100644
--- a/code/modules/mob/login.dm
+++ b/code/modules/mob/login.dm
@@ -20,10 +20,10 @@
spawn() alert("You have logged in already with another key this round, please log out of this one NOW or risk being banned!")
if(matches)
if(M.client)
- message_admins("