mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	relay: fix a typo: CLIENTBOT_WHITELISTED_UMODES -> CLIENTBOT_WHITELISTED_CMODES
This commit is contained in:
		
							parent
							
								
									310ad345a3
								
							
						
					
					
						commit
						c978e1c52f
					
				@ -881,7 +881,7 @@ WHITELISTED_UMODES = {
 | 
			
		||||
     'stripcolor',
 | 
			
		||||
     'wallops'
 | 
			
		||||
}
 | 
			
		||||
CLIENTBOT_WHITELISTED_UMODES = {'admin', 'ban', 'banexception', 'halfop', 'invex', 'op', 'owner', 'voice'}
 | 
			
		||||
CLIENTBOT_WHITELISTED_CMODES = {'admin', 'ban', 'banexception', 'halfop', 'invex', 'op', 'owner', 'voice'}
 | 
			
		||||
CLIENTBOT_MODESYNC_OPTIONS = ('none', 'half', 'full')
 | 
			
		||||
def get_supported_cmodes(irc, remoteirc, channel, modes):
 | 
			
		||||
    """
 | 
			
		||||
@ -903,7 +903,7 @@ def get_supported_cmodes(irc, remoteirc, channel, modes):
 | 
			
		||||
        if modesync == 'none':
 | 
			
		||||
            return []  # Do nothing
 | 
			
		||||
        elif modesync == 'half':
 | 
			
		||||
            whitelist = CLIENTBOT_WHITELISTED_UMODES
 | 
			
		||||
            whitelist = CLIENTBOT_WHITELISTED_CMODES
 | 
			
		||||
 | 
			
		||||
    supported_modes = []
 | 
			
		||||
    for modepair in modes:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user