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

+2 -2
View File
@@ -248,7 +248,7 @@ class LegacyCtrl:
handler = self._handler(command)
if handler is None:
# anything else is acknowledged and dropped, so the client stops resending it
self.logger.info('[Client] Unhandled command', hex(command), 'from V{}'.format(self.version))
self.logger.debug('[Client] Unhandled command', hex(command), 'from V{}'.format(self.version))
self.ack(header)
return
handler(header, data)
@@ -483,7 +483,7 @@ class LegacyCtrl:
self._store_offline(target, plain)
return
except Exception as ex:
self.logger.info('[Client] Could not open a chat:', str(ex))
self.logger.debug('[Client] Could not open a chat:', str(ex))
return
evt.send_when_joined(target.uuid, md)
+3 -3
View File
@@ -65,7 +65,7 @@ class ListenerICQ(asyncio.DatagramProtocol):
def error_received(self, exc: Exception) -> None:
# an ICMP port unreachable from a client that went away; its session times out by itself
self.logger.info('UDP error:', str(exc))
self.logger.debug('UDP error:', str(exc))
def send(self, packet: bytes, addr: Address) -> None:
if self.transport is not None:
@@ -77,7 +77,7 @@ class ListenerICQ(asyncio.DatagramProtocol):
try:
parsed = wire.parse(packet)
if parsed is None:
self.logger.info('Dropped a datagram that is no ICQ packet from', addr[0])
self.logger.debug('Dropped a datagram that is no ICQ packet from', addr[0])
return
header, data = parsed
self.logger.debug('[Client]', header, 'from', addr)
@@ -132,7 +132,7 @@ class ListenerICQ(asyncio.DatagramProtocol):
now = time.monotonic()
for ctrl in list(self.by_uin.values()):
if now - ctrl.last_activity > SESSION_TIMEOUT:
ctrl.logger.info('Timed out')
ctrl.logger.debug('Timed out')
ctrl.close()
for addr, noted in list(self.preauth.items()):
if now - noted > PREAUTH_LIFETIME:
+8 -8
View File
@@ -246,7 +246,7 @@ class ICQFoodgroup:
tlvs = unmarshal_tlvs(message.data)
envelope_tlv = find_tlv(tlvs, 0x0001)
if envelope_tlv is None or len(envelope_tlv.data) < 2:
self.logger.info('[Client] ICQ__DB_QUERY without its envelope')
self.logger.debug('[Client] ICQ__DB_QUERY without its envelope')
return
# TLV 0x01: u16 (LE) length, u32 UIN, u16 request type, u16 sequence, [u16 meta subtype], request data
@@ -258,32 +258,32 @@ class ICQFoodgroup:
request_type = reader.u16()
seq = reader.u16()
except ValueError:
self.logger.info('[Client] Truncated ICQ__DB_QUERY')
self.logger.debug('[Client] Truncated ICQ__DB_QUERY')
return
query = ICQContext(client, context, message.request_id, seq)
if request_type == ICQRequest.OfflineMessages:
self.logger.info('[Client] ICQ__DB_QUERY offline messages')
self.logger.debug('[Client] ICQ__DB_QUERY offline messages')
offline_messages(query)
elif request_type == ICQRequest.DeleteOfflineMessages:
self.logger.info('[Client] ICQ__DB_QUERY delete offline messages')
self.logger.debug('[Client] ICQ__DB_QUERY delete offline messages')
delete_offline_messages(query)
elif request_type == ICQRequest.Meta:
try:
subtype = reader.u16()
except ValueError:
return
self.logger.info('[Client] ICQ__DB_QUERY meta', hex(subtype))
self.logger.debug('[Client] ICQ__DB_QUERY meta', hex(subtype))
handler = META_HANDLERS.get(subtype)
if handler is None:
self.logger.info('[Client] Unsupported ICQ meta request', hex(subtype))
self.logger.debug('[Client] Unsupported ICQ meta request', hex(subtype))
return
try:
handler(query, reader)
except ValueError:
self.logger.info('[Client] Malformed ICQ meta request', hex(subtype))
self.logger.debug('[Client] Malformed ICQ meta request', hex(subtype))
else:
self.logger.info('[Client] Unknown ICQ__DB_QUERY request type', hex(request_type))
self.logger.debug('[Client] Unknown ICQ__DB_QUERY request type', hex(request_type))
# offline messages
+3 -3
View File
@@ -23,14 +23,14 @@ def handle(ctrl: 'LegacyCtrl', header: 'Header', data: bytes) -> None:
subtype = reader.u16()
handler = HANDLERS.get(subtype)
if handler is None:
ctrl.logger.info('[Client] Unhandled META_USER request', hex(subtype))
ctrl.logger.debug('[Client] Unhandled META_USER request', hex(subtype))
reply(ctrl, header, subtype, MetaResult.Ok)
return
ctrl.logger.info('[Client] META_USER', hex(subtype))
ctrl.logger.debug('[Client] META_USER', hex(subtype))
try:
handler(ctrl, header, reader)
except ValueError:
ctrl.logger.info('[Client] Malformed META_USER request', hex(subtype))
ctrl.logger.debug('[Client] Malformed META_USER request', hex(subtype))
def reply(ctrl: 'LegacyCtrl', header: 'Header', subtype: int, result: int, body: bytes = b'') -> None:
ctrl.send(Server.MetaUser, LE().u16(subtype).u8(result).raw(body if result == MetaResult.Ok else b'').bytes(), seq2 = header.seq2)