From 71ddfb85023b4511645779729a1381d4898d9d44 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sun, 13 Sep 2015 23:36:50 +0200 Subject: [PATCH] urban_dictionary.lua: fix if text is nil --- plugins/urban_dictionary.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/urban_dictionary.lua b/plugins/urban_dictionary.lua index c42ed5d..638d050 100644 --- a/plugins/urban_dictionary.lua +++ b/plugins/urban_dictionary.lua @@ -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