urban_dictionary.lua: fix if text is nil
This commit is contained in:
parent
a476467a3f
commit
71ddfb8502
@ -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
|
||||
|
Reference in New Issue
Block a user