From 332e948c6cbaea2cad8556b60b1a1248694524a3 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Mon, 3 Mar 2014 05:38:20 +0400 Subject: [PATCH] Woops 2 --- ElvUI_SLE/dev/options.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/dev/options.lua b/ElvUI_SLE/dev/options.lua index b2cdece..2974005 100644 --- a/ElvUI_SLE/dev/options.lua +++ b/ElvUI_SLE/dev/options.lua @@ -27,14 +27,18 @@ if SLE:Auth() then local wtarget = "" local bnetP = "" - + function SLE:delete(...) + local _, id = ... + bnettesttbl[id] = nil + end + RegisterAddonMessagePrefix('SLE_DEV_INFO') local f = CreateFrame('Frame') f:RegisterEvent('CHAT_MSG_ADDON') f:RegisterEvent('BN_CHAT_MSG_ADDON') f:RegisterEvent('BN_FRIEND_ACCOUNT_ONLINE') - f:RegisterEvent('BN_FRIEND_ACCOUNT_OFFLINE') + SLE:RegisterEvent('BN_FRIEND_ACCOUNT_OFFLINE', 'delete') f:RegisterEvent('PLAYER_ENTERING_WORLD') f:SetScript('OnEvent', function(self, event, prefix, message, channel, sender) if event == 'BN_FRIEND_ACCOUNT_ONLINE' or event == 'BN_FRIEND_ACCOUNT_OFFLINE' then -- 1.7.9.5