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):