From 84a65d9cbc4fe89037b304e79b3fe67546704e09 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 29 Jul 2023 23:04:06 +0200 Subject: [PATCH] End capability negotiation after CAP ACK --- irc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc.py b/irc.py index 38e9056..c7afacd 100644 --- a/irc.py +++ b/irc.py @@ -38,6 +38,8 @@ class IRC(object): self._send(f"USER {nick} * * :{nick}") self._send(f"NICK {nick}") self._send(f"CAP REQ :message-tags") + self._waitfor(lambda m: "CAP" in m and "ACK" in m) + self._send(f"CAP END") self._waitfor(lambda m: "NOTICE" in m and "/AUTH" in m) for i in range(3):