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())