mirror of https://github.com/Shizmob/pydle.git
Fix _whois_info lookup.
I am doing this through the web so it will probably be broken
This commit is contained in:
parent
39502437ca
commit
cc164af33b
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue