mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Add is_vanilla_client & is_legacy_client attributes to client objects
This commit is contained in:
parent
23a071dbe8
commit
6e302e8723
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user