From 22e545e996a7ac4742a6725eb2db304dc25cb8af Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 13 May 2011 21:12:22 +0100 Subject: [PATCH] Fix title display when AddMFWaypoint is used Fixes 25 --- TomTom.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index b6704c7..177f6c0 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -902,8 +902,8 @@ function TomTom:AddMFWaypoint(m, f, x, y, opts) if not opts.silent and self.profile.general.announce then local ctxt = RoundCoords(x, y, 2) - local desc = opts.desc and opts.desc or "" - local sep = opts.desc and " - " or "" + local desc = opts.title and opts.title or "" + local sep = opts.title and " - " or "" local msg = string.format(L["|cffffff78TomTom:|r Added a waypoint (%s%s%s) in %s"], desc, sep, ctxt, zoneName) ChatFrame1:AddMessage(msg) end -- 1.7.9.5