From e5ddb1afe563884a7e9dfffdcc3ffb4e08c56ddc Mon Sep 17 00:00:00 2001 From: Shadow Quill Date: Thu, 13 Aug 2020 20:21:49 -0500 Subject: [PATCH] Cancel! --- 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 2bd7326b3b..15ba9c51e5 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -32,6 +32,8 @@ else targets["(No Mob) - [T]"] = T var/target = input(src,"To whom shall we send a message?","Admin PM",null) as null|anything in sortList(targets) + if(!target) //Admin canceled + return cmd_admin_pm(targets[target],null) feedback_add_details("admin_verb","Admin PM") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!