From 45b1b77f423c00181f51093905e70394d33d9fcd Mon Sep 17 00:00:00 2001 From: Atermonera Date: Thu, 20 Aug 2020 19:20:36 -0700 Subject: [PATCH] Merge pull request #7497 from Shadow-Quill/AdminPM Cancelling choosing someone to admin PM won't say "no mob" --- 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 7f7ecff2ac8..706e5a4274a 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!