From e5f78de757f422fd03f1c20f6609b58951d985e2 Mon Sep 17 00:00:00 2001 From: Treeku Date: Tue, 17 Jun 2014 18:27:01 +0100 Subject: [PATCH] Fixed issue where you could ID non-players --- scripts/commands/imagedesign.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/commands/imagedesign.py b/scripts/commands/imagedesign.py index d9a87e92..c9f2eab1 100644 --- a/scripts/commands/imagedesign.py +++ b/scripts/commands/imagedesign.py @@ -18,7 +18,10 @@ def run(core, actor, target, commandString): target = core.chatService.getObjectByFirstName(commandString) if target is None: return - + + if target is None or target.getClient() is None or target.getClient().getSession() is None: + return + if target.getGroupId() == actor.getGroupId(): tDesign = ImageDesignStartMessage(target.getObjectId(), actor.getObjectId(), target.getObjectId())