Fixe Notify. Uups!

This commit is contained in:
Andreas Bielawski 2016-08-16 20:58:28 +02:00
parent e022ddc9f7
commit 3b638321d6

View File

@ -27,7 +27,7 @@ function notify:pre_process(msg, self)
local notify_users = redis:smembers('notify:ls') local notify_users = redis:smembers('notify:ls')
-- I call this beautiful lady the "if soup" -- I call this beautiful lady the "if soup"
if msg.chat.type == 'chat' or msg.chat.type == 'supergroup' then if msg.chat.type == 'group' or msg.chat.type == 'supergroup' then
if msg.text then if msg.text then
for _,user in pairs(notify_users) do for _,user in pairs(notify_users) do
if isWordFoundInString('@'..user, string.lower(msg.text)) then if isWordFoundInString('@'..user, string.lower(msg.text)) then