Fixed a bug with the /way slash command, when used without arguments
James Whitehead II [06-01-08 - 21:43]
Fixed a bug with the /way slash command, when used without arguments
diff --git a/TomTom.lua b/TomTom.lua
index 5895209..1e1666f 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -857,7 +857,9 @@ SlashCmdList["WAY"] = function(msg)
for token in msg:gmatch("%S+") do table.insert(tokens, token) end
-- Lower the first token
- tokens[1] = tokens[1]:lower()
+ if tokens[1] then
+ tokens[1] = tokens[1]:lower()
+ end
if tokens[1] == "reset" then
if tokens[2] == "all" then