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:
Tony Young 2014-02-16 02:26:04 +13:00
parent 32b6df4ae1
commit 6b6a1e2ff1
1 changed files with 6 additions and 0 deletions

View File

@ -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] = {