From 8839d94988476ba6694c9d3c9d359254e906cc02 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 14 Aug 2025 14:01:34 +0200 Subject: [PATCH] Handle 396 numeric. --- ircplom/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ircplom/client.py b/ircplom/client.py index bd71e6a..3eea886 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -22,6 +22,7 @@ _NUMERICS_TO_CONFIRM_NICKNAME = ( (265, 266), 372, (375, 376), + 396, ) _NUMERICS_TO_IGNORE = ( (1, 4), # nothing in this login info we're interested in @@ -354,6 +355,11 @@ class Client(ABC, ClientQueueMixin): self._db.append('motd', msg.params[-1]) case '376': # RPL_ENDOFMOTD self._update_db('motd', None, True) + case '396': # RPL_VISIBLEHOST/RPL_YOURDISPLAYEDHOST/RPL_HOSTHIDDEN + # '@'-split because + # claims: " can also be in the form " + self._update_db('client_host', confirm=True, + value=msg.params[1].split('@')[-1]) case 'PING': self.send(IrcMessage(verb='PONG', params=(msg.params[0],))) case 'ERROR': -- 2.30.2