mirror of https://github.com/Shizmob/pydle.git
If a nickname contains a space, then the WHOIS result should just be None.
Of course, this won't work great on Rizon where the stupi^Wbrilliant network administrators put spaces in their nicknames...
This commit is contained in:
parent
32b6df4ae1
commit
6b6a1e2ff1
|
@ -283,6 +283,12 @@ class RFC1459Support(BasicClient):
|
|||
and yield from this function as follows:
|
||||
info = yield self.whois('Nick')
|
||||
"""
|
||||
|
||||
if " " in nickname:
|
||||
fut = Future()
|
||||
fut.set_result(None)
|
||||
return fut
|
||||
|
||||
if nickname not in self._requests['whois']:
|
||||
self.rawmsg('WHOIS', nickname)
|
||||
self._whois_info[nickname] = {
|
||||
|
|
Loading…
Reference in New Issue