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)