* When handling a multi-word zone in /way, make sure to set the description correctly
James Whitehead II [01-26-09 - 14:17]
* When handling a multi-word zone in /way, make sure to set the description correctly
diff --git a/TomTom.lua b/TomTom.lua
index edf2cc1..e3997fa 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -1039,7 +1039,7 @@ SlashCmdList["TOMTOM_WAY"] = function(msg)
local zone = table.concat(tokens, " ", 1, zoneEnd)
local x,y,desc = select(zoneEnd + 1, unpack(tokens))
- if desc then desc = table.concat(tokens, " ", 4) end
+ if desc then desc = table.concat(tokens, " ", zoneEnd + 3) end
-- Find a fuzzy match for the zone
local matches = {}