mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
relay: only check _invisible flag on actual users
This commit is contained in:
parent
71353a29c2
commit
41cbd455d6
@ -474,11 +474,12 @@ def get_remote_user(irc, remoteirc, user, spawn_if_missing=True, times_tagged=0,
|
||||
|
||||
# Ignore invisible users - used to skip joining users who are offline or invisible on
|
||||
# external transports
|
||||
hide = getattr(irc.users[user], '_invisible', False)
|
||||
if hide:
|
||||
log.debug('(%s) get_remote_user: ignoring user %s since they are marked invisible', irc.name,
|
||||
user)
|
||||
return
|
||||
if user in irc.users:
|
||||
hide = getattr(irc.users[user], '_invisible', False)
|
||||
if hide:
|
||||
log.debug('(%s) get_remote_user: ignoring user %s since they are marked invisible', irc.name,
|
||||
user)
|
||||
return
|
||||
|
||||
log.debug('(%s) Grabbing spawnlocks[%s] from thread %r in function %r', irc.name, irc.name,
|
||||
threading.current_thread().name, inspect.currentframe().f_code.co_name)
|
||||
|
Loading…
Reference in New Issue
Block a user