isupports: list[str]
motd: list[str]
nickname: str
+ user_modes: str
def __init__(self) -> None:
self._dict: dict[str, ClientDbType] = {}
self.send(IrcMessage(verb='PONG', params=(msg.params[0],)))
case 'ERROR':
self.close()
+ case 'MODE' if (len(msg.params) == 2
+ and msg.params[0] == self._db.nickname):
+ self._update_db('user_modes', msg.params[1], True)
case 'NOTICE' | 'PRIVMSG':
scope = LogScope.CHAT if '!' in msg.source else LogScope.SERVER
self._log(msg.params[-1], scope=scope, channel=msg.params[0],