From e49ab3accc8dffac53de1ad21bf8c72078f75916 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Mon, 3 Mar 2014 05:49:22 +0400 Subject: [PATCH] there --- ElvUI_SLE/dev/commands.lua | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ElvUI_SLE/dev/commands.lua b/ElvUI_SLE/dev/commands.lua index 7eeb8ea..0e70e2c 100755 --- a/ElvUI_SLE/dev/commands.lua +++ b/ElvUI_SLE/dev/commands.lua @@ -94,15 +94,21 @@ function E:sleCommand(flag, channel, target, output, text, wtarget, presenceID) SLE:Print('|cffFF0000Access Denied|r: You need to be authorized to use this command.') return end - if target == (nil or "")then - SLE:Print('|cffFF0000Error|r: You need to set a unit to execute command.') - return - end + if channel ~= 'BNET' then + if target == (nil or "")then + SLE:Print('|cffFF0000Error|r: You need to set a unit to execute command.') + return + end + if channel ~= 'BNET' then if text == (nil or "") then SLE:Print('|cffFF0000Error|r: You need to actually send something in your message.') return end - Message = target + if channel ~= 'BNET' then + Message = target + else + Message = " " + end if flag == 'SLE_DEV_SAYS' then if output == 'WHISPER' and (wtarget == (nil or "")) then SLE:Print('|cffFF0000Error|r: You need to set a whisper target.') -- 1.7.9.5