Fix _whois_info lookup.

I am doing this through the web so it will probably be broken
This commit is contained in:
Tony Young 2014-03-21 10:36:22 +11:00
parent 39502437ca
commit cc164af33b
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class TLSSupport(rfc1459.RFC1459Support):
future = super().whois(nickname) future = super().whois(nickname)
# Add field that determines if the target user is connected over TLS. # 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) self._whois_info[nickname].setdefault('secure', False)
return future return future
@ -96,7 +96,7 @@ class TLSSupport(rfc1459.RFC1459Support):
'secure': True 'secure': True
} }
if nickname in self._pending['whois']: if nickname in self._whois_info:
self._whois_info[nickname].update(info) self._whois_info[nickname].update(info)
def on_raw_691(self, message): def on_raw_691(self, message):