mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-10-31 15:07:25 +01:00 
			
		
		
		
	clientbot: treat 0 as an empty account name (for WHOX)
This fixes incorrect "X is logged in (on somenet) as 0" messages in WHOIS.
This commit is contained in:
		
							parent
							
								
									d0dff2c5ae
								
							
						
					
					
						commit
						544e078512
					
				| @ -407,7 +407,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): | ||||
|         """ | ||||
|         if account is None:  # Ignore when account=None | ||||
|             return | ||||
|         elif account == '*':  # This indicates logout | ||||
|         elif account in ('*', '0'):  # No account | ||||
|             account = '' | ||||
| 
 | ||||
|         if account != self.users[uid].services_account: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Lu
						James Lu