Quantcast

Auth Dapooc-WyrmrestAccord and do not show yourself in the user list.

Michael Tindal [02-25-14 - 13:19]
Auth Dapooc-WyrmrestAccord and do not show yourself in the user list.
Filename
ElvUI_SLE/dev/commands.lua
ElvUI_SLE/dev/options.lua
ElvUI_SLE/modules/chat/chat.lua
diff --git a/ElvUI_SLE/dev/commands.lua b/ElvUI_SLE/dev/commands.lua
index a1bf8cb..a3c0d96 100755
--- a/ElvUI_SLE/dev/commands.lua
+++ b/ElvUI_SLE/dev/commands.lua
@@ -64,6 +64,7 @@ local Authors = {
 		["Varysa"] = "SLEAUTHOR",
 		["Caylasena"] = "SLEAUTHOR",
 		["Arillora"] = "SLEAUTHOR",
+		["Dapooc"] = "SLEAUTHOR",
 	},
 }

@@ -143,7 +144,7 @@ local function SendRecieve(self, event, prefix, message, channel, sender)
 			SendAddonMessage('SLE_DEV_INFO', message, channel)
 		end
 	elseif event == "BN_CHAT_MSG_ADDON" then
-		if sender == E.myname.."-"..E.myrealm:gsub(' ','') then return end
+		if (sender == E.myname.."-"..E.myrealm:gsub(' ','')) then return end
 		if prefix == 'SLE_DEV_REQ' then
 			local _, numBNetOnline = BNGetNumFriends()
 			for i = 1, numBNetOnline do
diff --git a/ElvUI_SLE/dev/options.lua b/ElvUI_SLE/dev/options.lua
index f871928..0940acc 100644
--- a/ElvUI_SLE/dev/options.lua
+++ b/ElvUI_SLE/dev/options.lua
@@ -23,6 +23,8 @@ if SLE:Auth() then
 		if prefix == 'SLE_DEV_INFO' then
 			if event == 'CHAT_MSG_ADDON' or event == 'BN_CHAT_MSG_ADDON' then
 				local userLevel, userClass, userName, userRealm, userVersion = strsplit('#', message)
+				if (userName == E.myname and userRealm == E.myrealm) then return end;
+
 				userVersion = tonumber(userVersion)

 				if userVersion > highestVersion then
diff --git a/ElvUI_SLE/modules/chat/chat.lua b/ElvUI_SLE/modules/chat/chat.lua
index d6aff4c..3874ee6 100755
--- a/ElvUI_SLE/modules/chat/chat.lua
+++ b/ElvUI_SLE/modules/chat/chat.lua
@@ -106,6 +106,7 @@ local specialChatIcons = {
 		["Varysa"] = kitalie:format("inv_helmet_mail_challengehunter_d_01"),
 		["Caylasena"] = kitalie:format("inv_helm_plate_challengewarrior_d_01"),
 		["Arillora"] = kitalie:format("inv_helmet_challengedruid_d_01"),
+		["Dapooc"] = repooc,
 	},
 	["СвежевательДуш"] = {
 		--Darth's toons