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

+9 -9
View File
@@ -17,7 +17,7 @@ class BUCPFoodgroup:
@Subgroup(0x0006)
def challenge_request(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
self.logger.info('[Client] BUCP__CHALLENGE_REQUEST')
self.logger.debug('[Client] BUCP__CHALLENGE_REQUEST')
tlvs = unmarshal_tlvs(message.data)
screen_name_tlv = find_tlv(tlvs, 0x0001)
@@ -38,12 +38,12 @@ class BUCPFoodgroup:
response_msg.write_u16(len(salt))
response_msg.write_string(salt)
self.logger.info('[Server] BUCP__CHALLENGE_RESPONSE (salt:', salt + ')')
self.logger.debug('[Server] BUCP__CHALLENGE_RESPONSE (salt:', salt + ')')
client.send_snac(response_msg)
@Subgroup(0x0002)
def login_request(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
self.logger.info('[Client] BUCP__LOGIN_REQUEST')
self.logger.debug('[Client] BUCP__LOGIN_REQUEST')
from ..ctrl import authenticate, client_version, multi_conn_flag
@@ -57,9 +57,9 @@ class BUCPFoodgroup:
version_str = client_version(tlvs)
self.logger.info('Screen Name (client-given):', screen_name)
self.logger.info('Client version:', version_str)
self.logger.info('Password (hashed):', client_hash)
self.logger.debug('Screen Name (client-given):', screen_name)
self.logger.debug('Client version:', version_str)
self.logger.debug('Password (hashed):', client_hash)
response_msg = SNACMessage(0x0017, 0x0003, 0x0000, message.request_id)
@@ -79,11 +79,11 @@ class BUCPFoodgroup:
uuid, icq, error_code = authenticate(context.backend, screen_name, check)
if error_code in (LoginError.UnregisteredScreenname, LoginError.ICQUserError):
self.logger.info('Unregistered screenname')
self.logger.debug('Unregistered screenname')
elif error_code == LoginError.IncorrectPassword:
self.logger.info('Incorrect password')
self.logger.debug('Incorrect password')
else:
self.logger.info('Authenticated via', matched.get(uuid))
self.logger.debug('Authenticated via', matched.get(uuid))
context.client = Client('icq' if icq else 'aim', version_str, context.client.via)
client.ctrl.client = context.client