Clear default mode prefixes when we get a 005 with mode prefixes in it

This commit is contained in:
jesopo 2018-07-02 16:25:34 +01:00
parent fe89164077
commit 29c55246b0

View file

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