Fixe Notify. Uups!
This commit is contained in:
parent
e022ddc9f7
commit
3b638321d6
@ -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
|
||||||
|
Reference in New Issue
Block a user