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

View file

@ -93,8 +93,8 @@ function mod:COMBAT_LOG_EVENT_UNFILTERED(_, timestamp, event, _, srcGUID, srcNam
act = "missed"; act = "missed";
end end
if (act ~= false) then if (act ~= false) then
local target = (dstName and " on %s") or ""; local target = (dstName and (" on %s"):format(dstName)) or "";
SendChatMessage(format("%s %s %s%s", srcName, act, spellName, dstName, target), "channel", nil, GetChannelName("ncafail")); SendChatMessage(format("%s %s %s%s", srcName, act, spellName, target), "channel", nil, GetChannelName("ncafail"));
end end
end end