1
0
Fork 0

Announce: fix to formatted strings for combat event reporting

This commit is contained in:
pigmonkey 2011-06-25 04:06:55 -04:00
parent 26af0aac7d
commit d99013a9d3
1 changed files with 2 additions and 2 deletions

View File

@ -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