mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:09:55 +00:00
- 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
20 lines
798 B
Python
20 lines
798 B
Python
from util.misc import Logger
|
|
|
|
from ..proto.snac import OSCARClient, OSCARContext, SNACMessage, Foodgroup, Subgroup
|
|
|
|
@Foodgroup(0x0018)
|
|
class EmailFoodgroup:
|
|
logger: Logger
|
|
|
|
@Subgroup(0x0006)
|
|
def status_request(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
|
|
self.logger.debug('[Client] EMAIL__STATUS_REQUEST')
|
|
# unread count. no mail yet, so it stays zero
|
|
# 0x06 is ALERT__NOTIFY_CAPABILITIES, which takes no reply; answering it with an
|
|
# ALERT__NOTIFY nobody asked for is what used to go back here
|
|
self.logger.debug('[Client] Alert capabilities:', message.data.hex())
|
|
|
|
@Subgroup(0x0016)
|
|
def activate(self, client: OSCARClient, context: OSCARContext, message: SNACMessage) -> None:
|
|
self.logger.debug('[Client] EMAIL__ACTIVATE (no reply expected)')
|