mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +01:00
relay: briefly workaround #74 by reordering our user checks
This commit is contained in:
parent
57c3a04cda
commit
5c3466bf82
@ -615,6 +615,10 @@ def relayJoins(irc, channel, users, ts, modes):
|
|||||||
continue
|
continue
|
||||||
log.debug('(%s) relayJoins: got %r for users', irc.name, users)
|
log.debug('(%s) relayJoins: got %r for users', irc.name, users)
|
||||||
for user in users.copy():
|
for user in users.copy():
|
||||||
|
if utils.isInternalClient(irc, user) or user not in irc.users:
|
||||||
|
# We don't need to clone PyLink pseudoclients... That's
|
||||||
|
# meaningless.
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
if irc.users[user].remote:
|
if irc.users[user].remote:
|
||||||
# Is the .remote attribute set? If so, don't relay already
|
# Is the .remote attribute set? If so, don't relay already
|
||||||
@ -622,10 +626,6 @@ def relayJoins(irc, channel, users, ts, modes):
|
|||||||
continue
|
continue
|
||||||
except AttributeError: # Nope, it isn't.
|
except AttributeError: # Nope, it isn't.
|
||||||
pass
|
pass
|
||||||
if utils.isInternalClient(irc, user) or user not in irc.users:
|
|
||||||
# We don't need to clone PyLink pseudoclients... That's
|
|
||||||
# meaningless.
|
|
||||||
continue
|
|
||||||
log.debug('Okay, spawning %s/%s everywhere', user, irc.name)
|
log.debug('Okay, spawning %s/%s everywhere', user, irc.name)
|
||||||
assert user in irc.users, "(%s) How is this possible? %r isn't in our user database." % (irc.name, user)
|
assert user in irc.users, "(%s) How is this possible? %r isn't in our user database." % (irc.name, user)
|
||||||
u = getRemoteUser(irc, remoteirc, user)
|
u = getRemoteUser(irc, remoteirc, user)
|
||||||
|
Loading…
Reference in New Issue
Block a user