From 9f0be448997e68f82a1f1600a4be6491cde65f5e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 19 Aug 2025 03:24:57 +0200 Subject: [PATCH] Don't crash when op leaves channel. --- ircplom/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircplom/client.py b/ircplom/client.py index 27931bd..f3cdc94 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -572,7 +572,8 @@ class Client(ABC, ClientQueueMixin): self._db.process_isupport(msg.params[1:-1]) elif msg.match('353') and msg.params[1] == '=': # RPL_NAMREPLY for user in msg.params[3].split(): - self._db.chan(msg.params[2]).append_completable('users', user) + self._db.chan(msg.params[2]).append_completable( + 'users', user.lstrip('~&@%+')) elif msg.match('366'): # RPL_ENDOFNAMES self._db.chan(msg.params[1]).declare_complete('users') elif msg.match('372'): # RPL_MOTD -- 2.30.2