From 4806e9c81e15a9d588172e0420479c7c8a586372 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 19 May 2019 11:13:37 +0100 Subject: [PATCH] Switch to using Capability.copy() for sasl --- modules/sasl/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/sasl/__init__.py b/modules/sasl/__init__.py index 15b7d2f1..5d2f9b2f 100644 --- a/modules/sasl/__init__.py +++ b/modules/sasl/__init__.py @@ -2,6 +2,8 @@ import base64, hashlib, hmac, uuid from src import ModuleManager, utils from . import scram +CAP = utils.irc.Capability("sasl") + USERPASS_MECHANISMS = [ "SCRAM-SHA-512", "SCRAM-SHA-256", @@ -41,7 +43,7 @@ class Module(ModuleManager.BaseModule): do_sasl = True if do_sasl: - cap = utils.irc.Capability("sasl") + cap = CAP.copy() cap.on_ack(lambda: self._sasl_ack(event["server"])) return cap