Makes PMs work after the client reconnects (#14404)

This commit is contained in:
farie82
2020-09-21 15:08:34 -04:00
committed by GitHub
parent 6e21cfde19
commit 1ffca6dfed
11 changed files with 43 additions and 39 deletions
+2 -6
View File
@@ -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"])