From d99013a9d3467adccb9bb0858e96a290b7600272 Mon Sep 17 00:00:00 2001 From: pigmonkey Date: Sat, 25 Jun 2011 04:06:55 -0400 Subject: [PATCH] Announce: fix to formatted strings for combat event reporting --- modules/announce.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/announce.lua b/modules/announce.lua index 0de9065..6780f54 100644 --- a/modules/announce.lua +++ b/modules/announce.lua @@ -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