From: Christian Heller Date: Sun, 9 Nov 2025 18:22:38 +0000 (+0100) Subject: For CAP NEW/DEL/ACK/NAK processing, guarantee alphabetical order of items. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/calendar?a=commitdiff_plain;h=771409b47e1713897b830ea809db79dc729b7c36;p=ircplom For CAP NEW/DEL/ACK/NAK processing, guarantee alphabetical order of items. --- diff --git a/src/ircplom/client.py b/src/ircplom/client.py index 6b51caa..d5e03df 100644 --- a/src/ircplom/client.py +++ b/src/ircplom/client.py @@ -562,7 +562,7 @@ class _CapsManager(Clearable): def process_msg(self, verb: str, items: tuple[str, ...], complete: bool ) -> bool: 'Parse CAP message to negot. steps, DB inputs; return if successful.' - for item in items: + for item in sorted(items): if verb == 'NEW': key, data = _tuple_key_val_from_eq_str(item) self._dict[key].data = data