Skip to content

Commit

Permalink
Merge pull request #317 from RealPotatoCoin/master
Browse files Browse the repository at this point in the history
Update NxCom.lua
  • Loading branch information
IrcDirk authored Oct 19, 2023
2 parents 44bb85e + 1eeacf2 commit 23a171b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Carbonite/NxCom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1141,23 +1141,23 @@ function Nx.Com:Send (chanId, msg, plName)
end

elseif chanId == "p" then -- Addon party
--if (IsPartyLFG()) then
-- Nx:SendCommMessage (self.Name, msg, "INSTANCE_CHAT")
--else
if (IsInGroup(LE_PARTY_CATEGORY_INSTANCE)) then
Nx:SendCommMessage (self.Name, msg, "INSTANCE_CHAT")
else
Nx:SendCommMessage (self.Name, msg, "PARTY")
--end
end
elseif chanId == "W" then -- Addon whisper

-- Nx.prt ("Send W %s", plName)
Nx:SendCommMessage (self.Name, msg, "WHISPER", plName)

elseif chanId == "P" then -- Party channel
if GetNumSubgroupMembers() > 0 then
--if (IsPartyLFG()) then
-- self:SendChatMessageFixed (msg, "INSTANCE_CHAT")
--else
if (IsInGroup(LE_PARTY_CATEGORY_INSTANCE)) then
self:SendChatMessageFixed (msg, "INSTANCE_CHAT")
else
self:SendChatMessageFixed (msg, "PARTY")
--end
end
end

else
Expand Down

0 comments on commit 23a171b

Please sign in to comment.