Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function run(msg, matches)
- if is_owner(msg) then
- return
- end
- if matches[1] == 'chat_add_user' or matches[1] == 'chat_add_user_link' then
- return
- end
- local data = load_data(_config.moderation.data)
- if data[tostring(msg.to.id)] then
- if data[tostring(msg.to.id)]['settings'] then
- if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
- lock_adds = data[tostring(msg.to.id)]['settings']['lock_arabic']
- end
- end
- end
- local chat = get_receiver(msg)
- local user = "user#id"..msg.from.id
- if lock_adds == "yes" then
- send_large_msg(chat, 'ممنوع')
- chat_del_user(chat, user, ok_cb, true)
- end
- end
- return {
- patterns = {
- "^!!tgservice (chat_add_user_link)$",
- "^!!tgservice (chat_add_user)$",
- ".*"
- },
- run = run
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement