Announce: fix to formatted strings for combat event reporting
This commit is contained in:
parent
26af0aac7d
commit
d99013a9d3
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ function mod:COMBAT_LOG_EVENT_UNFILTERED(_, timestamp, event, _, srcGUID, srcNam
|
|||
act = "missed";
|
||||
end
|
||||
if (act ~= false) then
|
||||
local target = (dstName and " on %s") or "";
|
||||
SendChatMessage(format("%s %s %s%s", srcName, act, spellName, dstName, target), "channel", nil, GetChannelName("ncafail"));
|
||||
local target = (dstName and (" on %s"):format(dstName)) or "";
|
||||
SendChatMessage(format("%s %s %s%s", srcName, act, spellName, target), "channel", nil, GetChannelName("ncafail"));
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue