parent
3eab6cdb08
commit
bc911d5baa
|
@ -34,7 +34,7 @@ async def log_user_joins(client, update, users, chats):
|
||||||
return
|
return
|
||||||
is_join = isinstance(action, MessageActionChatJoinedByLink)
|
is_join = isinstance(action, MessageActionChatJoinedByLink)
|
||||||
if not is_join:
|
if not is_join:
|
||||||
is_join = action.users == [message.from_id.user_id]
|
is_join = action.users == [getattr(message.from_id, 'user_id', None)]
|
||||||
if is_join and not config['config']['log_user_joins']:
|
if is_join and not config['config']['log_user_joins']:
|
||||||
raise ContinuePropagation
|
raise ContinuePropagation
|
||||||
if not is_join and not config['config']['log_user_adds']:
|
if not is_join and not config['config']['log_user_adds']:
|
||||||
|
|
Loading…
Reference in New Issue