Skip to content

Commit

Permalink
fix logging message text
Browse files Browse the repository at this point in the history
  • Loading branch information
spromicky committed Mar 8, 2021
1 parent e3e9200 commit 270aaa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Oribos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ end

-- Loggers
function oribos:logNewPlayer(covenantID, playerName, playerClass, spellID)
if DCovenantLog == true and covenantID and playerName ~= UnitName("player") and not oribos.covenants[playerName] then
if DCovenantLog and covenantID and playerName ~= UnitName("player") and not oribos.covenants[playerName] then
local coloredName = "|CFFe5a472Details_Covenants|r"
local _, _, _, classColor = GetClassColor(playerClass)
local byMessage = ""

if spellID then
local link = GetSpellLink(spellID)
byMessage = "by spell: "..link
byMessage = " (by spell: "..link..")"
end

print(coloredName.." covenant defined: "..oribos:getCovenantIcon(covenantID).." |C"..classColor..playerName.."|r".."("..byMessage..")")
print(coloredName.." covenant defined: "..oribos:getCovenantIcon(covenantID).." |C"..classColor..playerName.."|r"..byMessage)
end
end

Expand Down

0 comments on commit 270aaa3

Please sign in to comment.