From 37d9799a62dec98c5ca51c58ff77fa3e47a64787 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 27 May 2009 10:48:21 +0000 Subject: [PATCH] * Add the description to the "waypoint added" message, if it is set --- TomTom.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index a75242b..f71f8aa 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -786,7 +786,7 @@ function TomTom:AddZWaypoint(c, z, x, y, desc, persistent, minimap, world, custo if not silent and self.profile.general.announce then local ctxt = RoundCoords(x/100, y/100, 2) - local msg = string.format("|cffffff78TomTom:|r Added a waypoint (%s) in %s", ctxt, zone) + local msg = string.format("|cffffff78TomTom:|r Added a waypoint (%s%s%s) in %s", desc and desc or "", desc and " - " or "", ctxt, zone) ChatFrame1:AddMessage(msg) end -- 1.7.9.5