From cc164af33b20145d8d34562db88d9391a094b37e Mon Sep 17 00:00:00 2001 From: Tony Young Date: Fri, 21 Mar 2014 10:36:22 +1100 Subject: [PATCH] Fix _whois_info lookup. I am doing this through the web so it will probably be broken --- pydle/features/tls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydle/features/tls.py b/pydle/features/tls.py index 8b80c1c..f2a08cd 100644 --- a/pydle/features/tls.py +++ b/pydle/features/tls.py @@ -64,7 +64,7 @@ class TLSSupport(rfc1459.RFC1459Support): future = super().whois(nickname) # Add field that determines if the target user is connected over TLS. - if nickname in self._whois_info['whois']: + if nickname in self._whois_info: self._whois_info[nickname].setdefault('secure', False) return future @@ -96,7 +96,7 @@ class TLSSupport(rfc1459.RFC1459Support): 'secure': True } - if nickname in self._pending['whois']: + if nickname in self._whois_info: self._whois_info[nickname].update(info) def on_raw_691(self, message):