Remove ~filters.forwarded in log_forwards and log_reports
This commit is contained in:
parent
f62db3abf7
commit
8210944fc9
|
@ -7,7 +7,7 @@ from .. import config, log_errors, app_user_ids, log_ring
|
|||
logged = defaultdict(set)
|
||||
lock = asyncio.Lock()
|
||||
|
||||
@Client.on_message(~filters.forwarded & ~filters.chat(config['config']['log_chat']) & filters.incoming & filters.forwarded & (filters.group | filters.channel))
|
||||
@Client.on_message(~filters.chat(config['config']['log_chat']) & filters.incoming & filters.forwarded & (filters.group | filters.channel))
|
||||
@log_errors
|
||||
async def log_forwards(client, message):
|
||||
if not config['config'].get('log_forwards'):
|
||||
|
|
|
@ -7,7 +7,7 @@ from .. import config, log_errors, log_ring
|
|||
reported = defaultdict(set)
|
||||
lock = asyncio.Lock()
|
||||
|
||||
@Client.on_message(~filters.forwarded & ~filters.chat(config['config']['log_chat']) & filters.regex(r'(?:^|\s+)@admins?(?:$|\W+)|^[/!](?:report|admins?)(?:$|\W+)') & filters.group)
|
||||
@Client.on_message(~filters.chat(config['config']['log_chat']) & filters.regex(r'(?:^|\s+)@admins?(?:$|\W+)|^[/!](?:report|admins?)(?:$|\W+)') & filters.group)
|
||||
@log_errors
|
||||
async def log_reports(client, message):
|
||||
if not config['config']['log_reports']:
|
||||
|
|
Loading…
Reference in New Issue