From 5c36c4e827fe9072e0db34d99f8588331eeb034e Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sun, 1 Jun 2008 21:43:03 +0000 Subject: [PATCH] Fixed a bug with the /way slash command, when used without arguments --- TomTom.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.9.5