From 4a657dc7a04731e750b1063f656b3e6ffe31e120 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Fri, 9 Sep 2016 05:15:00 -0400 Subject: [PATCH] ^ --- otouto/plugins/gImages.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otouto/plugins/gImages.lua b/otouto/plugins/gImages.lua index 85eccd2..0d0a16f 100644 --- a/otouto/plugins/gImages.lua +++ b/otouto/plugins/gImages.lua @@ -58,7 +58,7 @@ function gImages:action(msg, config) local output = '[' .. img_title .. '](' .. img_url .. ')' - if msg.text:match(gImages.nsfw_trigger) then + if msg.text_lower:match(gImages.nsfw_trigger) then utilities.send_message(msg, '*NSFW*\n'..output, true, msg.message_id, true) else utilities.send_message(msg, output, false, msg.message_id, true)