^
This commit is contained in:
parent
4067bef473
commit
4a657dc7a0
@ -58,7 +58,7 @@ function gImages:action(msg, config)
|
|||||||
local output = '[' .. img_title .. '](' .. img_url .. ')'
|
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)
|
utilities.send_message(msg, '*NSFW*\n'..output, true, msg.message_id, true)
|
||||||
else
|
else
|
||||||
utilities.send_message(msg, output, false, msg.message_id, true)
|
utilities.send_message(msg, output, false, msg.message_id, true)
|
||||||
|
Reference in New Issue
Block a user