mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	Merge branch 'master' into devel
This commit is contained in:
		
						commit
						5877031203
					
				@ -467,6 +467,13 @@ class InspIRCdProtocol(TS6BaseProtocol):
 | 
			
		||||
        namelist = []
 | 
			
		||||
        for user in userlist:
 | 
			
		||||
            modeprefix, user = user.split(',', 1)
 | 
			
		||||
 | 
			
		||||
            # Don't crash when we get an invalid UID.
 | 
			
		||||
            if user not in self.irc.users:
 | 
			
		||||
                log.debug('(%s) handle_fjoin: tried to introduce user %s not in our user list, ignoring...',
 | 
			
		||||
                          self.irc.name, user)
 | 
			
		||||
                continue
 | 
			
		||||
 | 
			
		||||
            namelist.append(user)
 | 
			
		||||
            self.irc.users[user].channels.add(channel)
 | 
			
		||||
            if their_ts <= our_ts:
 | 
			
		||||
 | 
			
		||||
@ -441,6 +441,13 @@ class TS6Protocol(TS6BaseProtocol):
 | 
			
		||||
            finalprefix = ''
 | 
			
		||||
            assert user, 'Failed to get the UID from %r; our regex needs updating?' % userpair
 | 
			
		||||
            log.debug('(%s) handle_sjoin: got modeprefix %r for user %r', self.irc.name, modeprefix, user)
 | 
			
		||||
 | 
			
		||||
            # Don't crash when we get an invalid UID.
 | 
			
		||||
            if user not in self.irc.users:
 | 
			
		||||
                log.debug('(%s) handle_sjoin: tried to introduce user %s not in our user list, ignoring...',
 | 
			
		||||
                          self.irc.name, user)
 | 
			
		||||
                continue
 | 
			
		||||
 | 
			
		||||
            for m in modeprefix:
 | 
			
		||||
                # Iterate over the mapping of prefix chars to prefixes, and
 | 
			
		||||
                # find the characters that match.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user