From 9ea4bebb006954e6438352a89e20d739c5f54d34 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Mon, 2 Apr 2012 05:30:45 +0000 Subject: [PATCH] Fixed Admin-PM again. Sorry. Note to others, BYOND can't sort associative lists. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3391 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/verbs/randomverbs.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index b223f57866..41a137b567 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -113,8 +113,8 @@ targets["[T.mob.real_name](as [T.mob.name]) - [T]"] = T else targets["(No Mob) - [T]"] = T - targets = sortList(targets) - var/target = input(usr,"To whom shall we send a message?","Admin PM",null) in targets|null + var/list/sorted = sortList(targets) + var/target = input(usr,"To whom shall we send a message?","Admin PM",null) in sorted|null cmd_admin_pm(targets[target]) //takes input from cmd_admin_pm_context, cmd_admin_pm_panel or /client/Topic and sends them a PM after fetching a message to send.