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:
Athena Funderburg committed 2026-11-06 00:36:13 +00:00
1 parent 4bf878556b
commit 6451bb9426
46 files changed
+307 -541

No files matched your search

+8 -8
View File
@@ -26,7 +26,7 @@ class ChatEventHandler(event.ChatEventHandler):
self._pending = []
def on_participant_joined(self, cs_other: 'ChatSession', first_pop: bool, initial_join: bool) -> None:
self.ctrl.logger.info('on_participant_joined')
self.ctrl.logger.debug('on_participant_joined')
still_pending = []
for (target_uuid, data) in self._pending:
if cs_other.user.uuid == target_uuid:
@@ -36,7 +36,7 @@ class ChatEventHandler(event.ChatEventHandler):
self._pending = still_pending
def on_participant_left(self, cs_other: 'ChatSession', last_pop: bool) -> None:
self.ctrl.logger.info('on_participant_left')
self.ctrl.logger.debug('on_participant_left')
# once the other side is gone this chat can't reach them again (they'd be invited to a new one), so it's let go
if any(cs is not self.cs for cs in self.cs.chat.get_roster()):
return
@@ -49,17 +49,17 @@ class ChatEventHandler(event.ChatEventHandler):
def on_chat_invite_declined(self, chat: 'Chat', invitee: User, *, invitee_id: Optional[str] = None,
message: Optional[str] = None, circle: bool = False) -> None:
self.ctrl.logger.info('on_chat_invite_declined')
self.ctrl.logger.debug('on_chat_invite_declined')
def on_chat_updated(self) -> None:
self.ctrl.logger.info('on_chat_updated')
self.ctrl.logger.debug('on_chat_updated')
def on_chat_roster_updated(self) -> None:
self.ctrl.logger.info('on_chat_roster_updated')
self.ctrl.logger.debug('on_chat_roster_updated')
def on_participant_status_updated(self, cs_other: 'ChatSession', first_pop: bool, initial: bool,
old_substatus: Substatus) -> None:
self.ctrl.logger.info('on_participant_status_updated')
self.ctrl.logger.debug('on_participant_status_updated')
def on_message(self, data: MessageData) -> None:
if data.sender is self.bs.user:
@@ -72,8 +72,8 @@ class ChatEventHandler(event.ChatEventHandler):
self.ctrl.send_snac(messagedata_to_icbm_event(data, self.bs))
return
elif data.type is MessageType.Chat:
self.ctrl.logger.info('Got a message from', data.sender.username, 'saying:')
self.ctrl.logger.info((data.text or '').encode())
self.ctrl.logger.debug('Got a message from', data.sender.username, 'saying:')
self.ctrl.logger.debug((data.text or '').encode())
# an OSCAR sender's own message cookie travels with the message, so acks and replies line up on both ends; anything
# else gets a fresh one, since clients take a repeated cookie for a repeated message
self.ctrl.send_snac(messagedata_to_icbm(data.front_cache.get('icbm_cookie') or gen_cookie(), data, self.bs))