From 7b2b8f1f050e942d966a6017913864776fa080f2 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 22 Oct 2022 08:29:16 +0200 Subject: [PATCH] [MIRROR] Admins can now safely cancel the "Admin PM" verb [MDB IGNORE] (#17093) * Admins can now safely cancel the "Admin PM" verb (#70705) * Admins can now safely cancel the "Admin PM" verb Co-authored-by: Funce --- code/modules/admin/verbs/adminpm.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index f553fa3dc49..51e58f4358e 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -60,6 +60,8 @@ targets["[nametag] - [client]"] = client var/target = input(src,"To whom shall we send a message?", "Admin PM", null) as null|anything in sort_list(targets) + if (isnull(target)) + return cmd_admin_pm(targets[target], null) SSblackbox.record_feedback("tally", "admin_verb", 1, "Admin PM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!