From 36f5c8ea14730db8e7415d9710422982e6d3e261 Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Sat, 13 Apr 2019 10:42:08 +0200 Subject: [PATCH] let cmd_admin_pm handle the null client --- code/modules/client/client procs.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index a0e2629dd20..a6216c87b1a 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -79,8 +79,7 @@ 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"]) - to_chat(src, "Error: Private-Message: Client not found.") - return + C = null // 404 client not found. Let cmd_admin_pm handle the error cmd_admin_pm(C, null, href_list["type"]) return