From 83ac4293b21fd08d514e3b7197e9e32fce3b514b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 24 Nov 2025 02:48:52 +0100 Subject: [PATCH] Minor refactoring. --- src/ircplom/client.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ircplom/client.py b/src/ircplom/client.py index 4e36d4a..90ebeca 100644 --- a/src/ircplom/client.py +++ b/src/ircplom/client.py @@ -852,12 +852,8 @@ class Client(ABC, ClientQueueMixin): for arg in args: if task.verb == 'setattr': setattr(node, arg, ret[arg]) - elif ',' in arg: - node(*(ret[split] for split in arg.split(','))) - elif arg: - node(ret[arg]) - else: - node() + continue + node(*(ret[split] for split in arg.split(',') if split)) if ret['_verb'] == '401': # ERR_NOSUCHNICK raise TargetUserOffline(ret['missing']) if ret['_verb'] == '432': # ERR_ERRONEOUSNICKNAME -- 2.30.2