From 1f09d69a75311b84eb98c6b3e7f1e79491982821 Mon Sep 17 00:00:00 2001 From: Evelyn Date: Wed, 1 Nov 2017 14:25:52 +0000 Subject: [PATCH] Abandon capability request if an empty ACK (a spec violation but okay) is received --- modules/nickserv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/nickserv.py b/modules/nickserv.py index 149dc961..8532b7f9 100644 --- a/modules/nickserv.py +++ b/modules/nickserv.py @@ -35,7 +35,10 @@ class Module(object): if event["subcommand"] == "NAK": event["server"].send_capability_end() elif event["subcommand"] == "ACK": - event["server"].send_authenticate("PLAIN") + if not "sasl" in event["capability_list"]: + event["server"].send_capability_end() + else: + event["server"].send_authenticate("PLAIN") else: pass