Skip to content

Commit

Permalink
Fixing channel updates
Browse files Browse the repository at this point in the history
  • Loading branch information
IrcDirk committed Jan 6, 2019
1 parent d4f0220 commit 80a8653
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions NxCom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function Nx.Com:OnChatEvent (event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, ar

local self = Nx.Com

-- Nx.prt ("ComChatEvent: %s %s", event, arg9)
--Nx.prt ("ComChatEvent: %s %s %s", event, arg1, arg9)

if strsub (arg9, 1, 3) == self.Name then

Expand All @@ -370,7 +370,7 @@ function Nx.Com:OnChatEvent (event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, ar

local nameRoot = Nx.Split ("I", arg9) -- Drop I and #

if arg1 == "YOU_JOINED" then
if arg1 == "YOU_JOINED" or arg1 == "YOU_CHANGED" then

local typ = strupper (strsub (arg9, 4, 4))

Expand Down Expand Up @@ -474,6 +474,9 @@ function Nx.Com:OnChat_msg_addon (args, distribution, target)

local name = target
-- if 1 then
if not Nx.strpos(name, "-") then
name = name .. "-" .. GetRealmName()
end
if name ~= self.PlyrName then -- Ignore myself
-- self.List:AddInfo ("A:"..arg1, format ("(%s %s) %s", name, arg3, arg2))
local data = { Nx.Split ("\t", args) }
Expand Down Expand Up @@ -685,7 +688,6 @@ function Nx.Com:UpdateChannelsTimer()

if UnitIsAFK ("player") or not Nx.db.profile.Comm.Zone then -- No current zone channel?
curMapId = nil

else
if Nx.Map:IsNormalMap (curMapId) then
local zs = self.ZStatus[curMapId] or {}
Expand Down

0 comments on commit 80a8653

Please sign in to comment.