From 759cd64f33bf99da98c48e586afe21bdefcc7c28 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 3 Sep 2018 22:17:01 +0100 Subject: Keep a list of CAP capabilities in IRCServer --- IRCLineHandler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'IRCLineHandler.py') diff --git a/IRCLineHandler.py b/IRCLineHandler.py index e5aa2e1e..082aa884 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -283,9 +283,12 @@ class LineHandler(object): event["server"].send_capability_queue() else: event["server"].send_capability_end() - elif subcommand == "ack" or subcommand == "nack": + elif subcommand == "ack": if not event["server"].waiting_for_capabilities(): event["server"].send_capability_end() + event["server"].capabilities = set(capabilities) + elif subcommand == "ack" or subcommand == "nack": + event["server"].send_capability_end() # the server is asking for authentication def authenticate(self, event): -- cgit v1.3.1-10-gc9f91