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)
|
function run(msg, matches)
|
||||||
local text = getUrbanDictionary(msg.text)
|
local text = getUrbanDictionary(msg.text)
|
||||||
if (text == nil) then
|
if (text == nil) then
|
||||||
return '"'..text..'" nicht gefunden.'
|
return '"'..matches[1]..'" nicht gefunden.'
|
||||||
else
|
else
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user