mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	plugin stats: Refactor multiline function call
Signed-off-by: Celelibi <celelibi@gmail.com>
This commit is contained in:
		
							parent
							
								
									88116dbe8d
								
							
						
					
					
						commit
						7204ef1cf1
					
				@ -115,11 +115,9 @@ def handle_stats(irc, source, command, args):
 | 
			
		||||
        for accountname, accountdata in conf.conf['login'].get('accounts', {}).items():
 | 
			
		||||
            networks = accountdata.get('networks', [])
 | 
			
		||||
            if irc.name in networks or not networks:
 | 
			
		||||
                _num(243, "O %s * %s :%s" % (
 | 
			
		||||
                     ' '.join(accountdata.get('hosts', ['*@*'])),
 | 
			
		||||
                     accountname,
 | 
			
		||||
                     'needoper' if accountdata.get('require_oper') else '')
 | 
			
		||||
                 )
 | 
			
		||||
                hosts = ' '.join(accountdata.get('hosts', ['*@*']))
 | 
			
		||||
                needoper = 'needoper' if accountdata.get('require_oper') else ''
 | 
			
		||||
                _num(243, "O %s * %s :%s" % (hosts, accountname, needoper))
 | 
			
		||||
 | 
			
		||||
    elif stats_type == 'u':
 | 
			
		||||
        # 242/RPL_STATSUPTIME: ":Server Up <days> days <hours>:<minutes>:<seconds>"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user