another fix for mentor replies (#18665)

* another fix for mentor replies

* .

* .

* .
This commit is contained in:
Kashargul
2025-10-24 15:38:02 +02:00
committed by GitHub
parent e178ce4a57
commit a617d4d0df
4 changed files with 11 additions and 8 deletions
+4 -1
View File
@@ -103,10 +103,13 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
//Admin PM
if(href_list["priv_msg"])
var/client/C = locate(href_list["priv_msg"])
var/passed_key = href_list["priv_msg"]
var/client/C = locate(passed_key)
if(ismob(C)) //Old stuff can feed-in mobs instead ofGLOB.clients
var/mob/M = C
C = M.client
if(!C && istext(passed_key))
C = passed_key
cmd_admin_pm(C,null)
return