From e09f56526f76ea84cb67c188182d5a175e08b2b3 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 24 Jan 2011 23:16:03 +0000 Subject: [PATCH] Fix an error when invalid zone supplied --- TomTom.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TomTom.lua b/TomTom.lua index 4060559..a28983d 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1129,6 +1129,7 @@ SlashCmdList["TOMTOM_WAY"] = function(msg) elseif #matches == 0 then local msg = string.format(L["Could not find any matches for zone %s."], zone) ChatFrame1:AddMessage(msg) + return end local zoneName = matches[1] @@ -1190,6 +1191,7 @@ SlashCmdList["TOMTOM_WAY"] = function(msg) elseif #matches == 0 then local msg = string.format(L["Could not find any matches for zone %s."], zone) ChatFrame1:AddMessage(msg) + return end -- There was only one match, so proceed -- 1.7.9.5