let cmd_admin_pm handle the null client

This commit is contained in:
joep van der velden
2019-04-13 10:42:08 +02:00
parent 9598dcac5e
commit 36f5c8ea14
+1 -2
View File
@@ -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, "<span class='danger'>Error: Private-Message: Client not found.</span>")
return
C = null // 404 client not found. Let cmd_admin_pm handle the error
cmd_admin_pm(C, null, href_list["type"])
return