Skip to content

Commit

Permalink
Update Commands.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Feb 22, 2022
1 parent 85d5217 commit 26c7464
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ElvUI_EltreumUI/Core/Commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function ElvUI_EltreumUI:LoadCommands()
if E.db.ElvUI_EltreumUI.waytext.enable then
self:RegisterChatCommand('way', 'WaypointTexttoCoordinate')
self:RegisterChatCommand('waypoint', 'WaypointTexttoCoordinate')
if E.Retail and E.db.ElvUI_EltreumUI.otherstuff.mpluskeys then
if E.Retail then
self:RegisterChatCommand('!key', 'Keys')
self:RegisterChatCommand('!keys', 'Keys')
end
Expand Down Expand Up @@ -134,9 +134,11 @@ function ElvUI_EltreumUI:Keys(event,message)
if covenantData then
covenantName = covenantData.name
end
for _, link in next, keys do
message = ""..link
SendChatMessage(message..(covenantName and (' ('..covenantName..')') or ''), channel)
if E.db.ElvUI_EltreumUI.otherstuff.mpluskeys then
for _, link in next, keys do
message = ""..link
SendChatMessage(message..(covenantName and (' ('..covenantName..')') or ''), channel)
end
end
end

Expand Down

0 comments on commit 26c7464

Please sign in to comment.