mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-10-30 22:47:24 +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 | ||||
|         log.debug('(%s) relayJoins: got %r for users', irc.name, users) | ||||
|         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: | ||||
|                 if irc.users[user].remote: | ||||
|                     # Is the .remote attribute set? If so, don't relay already | ||||
| @ -622,10 +626,6 @@ def relayJoins(irc, channel, users, ts, modes): | ||||
|                     continue | ||||
|             except AttributeError:  # Nope, it isn't. | ||||
|                 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) | ||||
|             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) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Lu
						James Lu