mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	
							parent
							
								
									6bc3191077
								
							
						
					
					
						commit
						3ad9362247
					
				@ -418,8 +418,12 @@ class ClientbotWrapperProtocol(Protocol):
 | 
			
		||||
 | 
			
		||||
        if '*' in status:  # Track IRCop status
 | 
			
		||||
            self.irc.applyModes(uid, [('+o', None)])
 | 
			
		||||
            self.irc.callHooks([uid, 'MODE', {'target': uid, 'modes': {('+o', None)}}])
 | 
			
		||||
            self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC Operator'}])
 | 
			
		||||
        #else:  # TODO: track de-opers as well
 | 
			
		||||
        elif self.irc.isOper(uid, allowAuthed=False) and not self.irc.isInternalClient(uid):
 | 
			
		||||
            # Track deopers
 | 
			
		||||
            self.irc.applyModes(uid, [('-o', None)])
 | 
			
		||||
            self.irc.callHooks([uid, 'MODE', {'target': uid, 'modes': {('-o', None)}}])
 | 
			
		||||
 | 
			
		||||
        self.who_received.add(uid)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user