mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	hybrid: handle services logins on burst too
This commit is contained in:
		
							parent
							
								
									3ae9155e78
								
							
						
					
					
						commit
						fb74179f58
					
				@ -173,9 +173,15 @@ class HybridProtocol(TS6Protocol):
 | 
			
		||||
        log.debug('Applying modes %s for %s', parsedmodes, uid)
 | 
			
		||||
        utils.applyModes(self.irc, uid, parsedmodes)
 | 
			
		||||
        self.irc.servers[numeric].users.add(uid)
 | 
			
		||||
 | 
			
		||||
        # Call the OPERED UP hook if +o is being added to the mode list.
 | 
			
		||||
        if ('+o', None) in parsedmodes:
 | 
			
		||||
            self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC_Operator'}])
 | 
			
		||||
 | 
			
		||||
        # Set the account name if present
 | 
			
		||||
        if account:
 | 
			
		||||
            self.irc.callHooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': account}])
 | 
			
		||||
 | 
			
		||||
        return {'uid': uid, 'ts': ts, 'nick': nick, 'realname': realname, 'host': host, 'ident': ident, 'ip': ip}
 | 
			
		||||
 | 
			
		||||
    def handle_tburst(self, numeric, command, args):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user