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
+12
-12
@@ -159,7 +159,7 @@ class OSCARCtrl:
|
||||
|
||||
entry = take_cookie(cookie_tlv.data)
|
||||
if entry is not None and (entry.bs is None or not entry.bs.closed):
|
||||
self.logger.info('found BOS cookie')
|
||||
self.logger.debug('found BOS cookie')
|
||||
self.multi_conn = entry.multi_conn
|
||||
|
||||
if entry.bs is not None:
|
||||
@@ -191,7 +191,7 @@ class OSCARCtrl:
|
||||
|
||||
if found:
|
||||
# NINA also sends OSERVICE__WELL_KNOWN_URLS right after (should we?)
|
||||
self.logger.info('[Server] OSERVICE__HOST_ONLINE')
|
||||
self.logger.debug('[Server] OSERVICE__HOST_ONLINE')
|
||||
|
||||
msg = SNACMessage(0x0001, 0x0003)
|
||||
|
||||
@@ -210,11 +210,11 @@ class OSCARCtrl:
|
||||
self.bs.front_data['oscar0_icq'] = entry.icq
|
||||
self.bs.front_data['oscar0_client_id'] = entry.client_id
|
||||
else:
|
||||
self.logger.info('invalid BOS cookie given')
|
||||
self.logger.debug('invalid BOS cookie given')
|
||||
self.close()
|
||||
|
||||
elif find_tlv(tlvs, 0x0001) is not None:
|
||||
self.logger.info('Using FLAP-level authentication')
|
||||
self.logger.debug('Using FLAP-level authentication')
|
||||
|
||||
screen_name_tlv = find_tlv(tlvs, 0x0001)
|
||||
roasted_pw_tlv = find_tlv(tlvs, 0x0002)
|
||||
@@ -222,8 +222,8 @@ class OSCARCtrl:
|
||||
screen_name = screen_name_tlv.data.decode('latin-1')
|
||||
roasted_pw = roasted_pw_tlv.data if roasted_pw_tlv is not None else b''
|
||||
|
||||
self.logger.info('Screen Name (client-given):', screen_name)
|
||||
self.logger.info('Password (roasted):', roasted_pw.hex())
|
||||
self.logger.debug('Screen Name (client-given):', screen_name)
|
||||
self.logger.debug('Password (roasted):', roasted_pw.hex())
|
||||
|
||||
context = self.context
|
||||
version = client_version(tlvs)
|
||||
@@ -233,9 +233,9 @@ class OSCARCtrl:
|
||||
context.backend, screen_name, lambda uuid: context.backend.user_service.login_with_uuid(uuid, password) is not None,
|
||||
)
|
||||
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')
|
||||
|
||||
self.client = Client('icq' if icq else 'aim', version, self.client.via)
|
||||
context.client = self.client
|
||||
@@ -266,17 +266,17 @@ class OSCARCtrl:
|
||||
self.logger.error(ex)
|
||||
|
||||
if not found:
|
||||
self.logger.info(f'[Client] Unknown SNAC({hex(message.foodgroup)},{hex(message.subgroup)})')
|
||||
self.logger.info('[Client]', message.data.hex())
|
||||
self.logger.debug(f'[Client] Unknown SNAC({hex(message.foodgroup)},{hex(message.subgroup)})')
|
||||
self.logger.debug('[Client]', message.data.hex())
|
||||
# an unanswered request leaves the client waiting on it, so it gets told the SNAC isn't one we know
|
||||
if message.subgroup != 0x0001:
|
||||
self.send_snac_error(message.foodgroup, message.request_id, 0x0001)
|
||||
|
||||
def on_error_frame(self, data: bytes) -> None:
|
||||
self.logger.info('[Client] Recieved error frame with:', data.hex())
|
||||
self.logger.debug('[Client] Recieved error frame with:', data.hex())
|
||||
|
||||
def on_signoff_frame(self, data: bytes) -> None:
|
||||
self.logger.info('[Client] Recieved signoff frame')
|
||||
self.logger.debug('[Client] Recieved signoff frame')
|
||||
self.close()
|
||||
|
||||
def close(self) -> None:
|
||||
|
||||
Reference in new issue
Block a user