Quantcast

* Added a /tomtomway command to get around Cartographer clobbering everything I set

James Whitehead II [11-16-08 - 11:05]
* Added a /tomtomway command to get around Cartographer clobbering everything I set
* Changed the global I use for slash commands, the previous one was ill-advised
Filename
TomTom.lua
diff --git a/TomTom.lua b/TomTom.lua
index 5b5b97f..550033b 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -880,9 +880,10 @@ for cidx,c in ipairs{GetMapContinents()} do
 	end
 end

-SLASH_WAY1 = "/way"
-SLASH_WAY2 = "/tway"
-SlashCmdList["WAY"] = function(msg)
+SLASH_TOMTOM_WAY1 = "/way"
+SLASH_TOMTOM_WAY2 = "/tway"
+SLASH_TOMTOM_WAY3 = "/tomtomway"
+SlashCmdList["TOMTOM_WAY"] = function(msg)
 	local tokens = {}
 	for token in msg:gmatch("%S+") do table.insert(tokens, token) end