mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:30:04 +00:00
bug fixes and improvements
- aliases are now handled properly in ABCH - removed final escargot leftovers (dev webconsole) - OSCAR etc. logging was not at log level debug - removed leftover debug code
This commit is contained in:
1 parent
4bf878556b
commit
6451bb9426
46 files changed
+307
-541
No files matched your search
@@ -49,7 +49,7 @@ class ChatNavFoodgroup:
|
||||
|
||||
@Subgroup(0x0002)
|
||||
def request_chat_rights(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
|
||||
self.logger.info('[Client] CHAT_NAV__REQUEST_CHAT_RIGHTS')
|
||||
self.logger.debug('[Client] CHAT_NAV__REQUEST_CHAT_RIGHTS')
|
||||
client.send_snac(nav_info(message.request_id, [
|
||||
TLV(NAV_TLV_MAX_CONCURRENT_ROOMS, struct.pack('>B', MAX_CONCURRENT_ROOMS)),
|
||||
TLV(NAV_TLV_EXCHANGE_INFO, exchange_info(EXCHANGE_PRIVATE)),
|
||||
@@ -58,7 +58,7 @@ class ChatNavFoodgroup:
|
||||
|
||||
@Subgroup(0x0003)
|
||||
def request_exchange_info(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
|
||||
self.logger.info('[Client] CHAT_NAV__REQUEST_EXCHANGE_INFO')
|
||||
self.logger.debug('[Client] CHAT_NAV__REQUEST_EXCHANGE_INFO')
|
||||
exchange = message.read_u16()
|
||||
if exchange not in (EXCHANGE_PRIVATE, EXCHANGE_PUBLIC):
|
||||
client.ctrl.send_snac_error(0x000D, message.request_id, NAV_ERROR_NOT_SUPPORTED)
|
||||
@@ -71,7 +71,7 @@ class ChatNavFoodgroup:
|
||||
@Subgroup(0x0004)
|
||||
def request_room_info(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
|
||||
# u16 exchange, string08 cookie, u16 instance, u8 detail level
|
||||
self.logger.info('[Client] CHAT_NAV__REQUEST_ROOM_INFO')
|
||||
self.logger.debug('[Client] CHAT_NAV__REQUEST_ROOM_INFO')
|
||||
info = parse_room_info(message.data)
|
||||
room = find_room(info['cookie']) if info is not None else None
|
||||
if room is None or room.exchange != info['exchange']:
|
||||
@@ -82,7 +82,7 @@ class ChatNavFoodgroup:
|
||||
@Subgroup(0x0008)
|
||||
def create_room(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
|
||||
# a CHAT__ROOM_INFO_UPDATE layout: u16 exchange, string08 cookie ("create"), u16 instance, u8 detail, TLV block
|
||||
self.logger.info('[Client] CHAT_NAV__CREATE_ROOM')
|
||||
self.logger.debug('[Client] CHAT_NAV__CREATE_ROOM')
|
||||
buf = Buffer(message.data)
|
||||
try:
|
||||
exchange = buf.read_u16()
|
||||
|
||||
Reference in new issue
Block a user