From 29c55246b0d85ba44bffba44480bcd8a39b9cbcc Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 2 Jul 2018 16:25:34 +0100 Subject: Clear default mode prefixes when we get a 005 with mode prefixes in it --- IRCLineHandler.py | 1 + 1 file changed, 1 insertion(+) (limited to 'IRCLineHandler.py') diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 296dd60e..efaa5cfd 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -82,6 +82,7 @@ def handle_005(data): server.send("PROTOCTL NAMESX") match = re.search(RE_PREFIXES, isupport_line) if match: + server.mode_prefixes.clear() modes = match.group(1) prefixes = match.group(2) for i, prefix in enumerate(prefixes): -- cgit v1.3.1-10-gc9f91