urban_dictionary.lua: fix if text is nil

This commit is contained in:
Akamaru 2015-09-13 23:36:50 +02:00
parent a476467a3f
commit 71ddfb8502
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ end
function run(msg, matches)
local text = getUrbanDictionary(msg.text)
if (text == nil) then
return '"'..text..'" nicht gefunden.'
return '"'..matches[1]..'" nicht gefunden.'
else
return text
end