mirror of
				https://github.com/solero/houdini.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	Add is_vanilla_client & is_legacy_client attributes to client objects
This commit is contained in:
		@@ -33,6 +33,14 @@ class Spheniscidae:
 | 
			
		||||
 | 
			
		||||
        self.received_packets = set()
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def is_vanilla_client(self):
 | 
			
		||||
        return self.client_type == ClientType.Vanilla
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def is_legacy_client(self):
 | 
			
		||||
        return self.client_type == ClientType.Legacy
 | 
			
		||||
 | 
			
		||||
    async def send_error_and_disconnect(self, error, *args):
 | 
			
		||||
        await self.send_xt('e', error, *args)
 | 
			
		||||
        await self.close()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user