From b197283fb3a0467392a0200fd86209a3ee9ef215 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 1 Aug 2014 10:57:37 +0400 Subject: [PATCH] Preventing shit fron happening --- ElvUI_SLE/core/commands.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ElvUI_SLE/core/commands.lua b/ElvUI_SLE/core/commands.lua index e52ace9..ab915f3 100644 --- a/ElvUI_SLE/core/commands.lua +++ b/ElvUI_SLE/core/commands.lua @@ -57,6 +57,7 @@ local Authors = { ["Arillora"] = "SLEAUTHOR", ["Dapooc"] = "SLEAUTHOR", }, + --Normal PTR ["Anasterian(US)"] = { ["Dapooc"] = "SLEAUTHOR", }, @@ -121,6 +122,10 @@ function E:sleCommand(flag, channel, target, output, text, wtarget, presenceID) if channel ~= 'BNET' then SendAddonMessage(flag, Message, channel, target) else + if not presenceID then + SLE:Print('|cffFF0000Error|r: No bnet friend selected, stupid.') + return + end presenceID = tonumber(presenceID) BNSendGameData(presenceID, flag, Message) end -- 1.7.9.5