From 1a24bc19af9613cd5eb531100a1ddf78c3f8148b Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 22 Oct 2017 00:43:33 -0700 Subject: [PATCH] ts6: rename self.caps to self._caps --- protocols/ts6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/ts6.py b/protocols/ts6.py index 26a4e90..8e22ef9 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -233,7 +233,7 @@ class TS6Protocol(TS6BaseProtocol): def knock(self, numeric, target, text): """Sends a KNOCK from a PyLink client.""" - if 'KNOCK' not in self.caps: + if 'KNOCK' not in self._caps: log.debug('(%s) knock: Dropping KNOCK to %r since the IRCd ' 'doesn\'t support it.', self.name, target) return @@ -424,7 +424,7 @@ class TS6Protocol(TS6BaseProtocol): # We only get a list of keywords here. Charybdis obviously assumes that # we know what modes it supports (indeed, this is a standard list). # <- CAPAB :BAN CHW CLUSTER ENCAP EOPMOD EUID EX IE KLN KNOCK MLOCK QS RSFNC SAVE SERVICES TB UNKLN - self.caps = caps = args[0].split() + self._caps = caps = args[0].split() for required_cap in self.required_caps: if required_cap not in caps: