mirror of https://github.com/Shizmob/pydle.git
Merge branch 'master' of github-aureax:Shizmob/pydle
This commit is contained in:
commit
626e1296da
|
@ -226,7 +226,7 @@ class BasicClient:
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def _format_user_mask(self, nickname):
|
def _format_user_mask(self, nickname):
|
||||||
user = self.users.get(nickname, { "username": "*", "hostname": "*" })
|
user = self.users.get(nickname, { "nickname": nickname, "username": "*", "hostname": "*" })
|
||||||
return self._format_host_mask(user['nickname'], user['username'] or '*', user['hostname'] or '*')
|
return self._format_host_mask(user['nickname'], user['username'] or '*', user['hostname'] or '*')
|
||||||
|
|
||||||
def _format_host_mask(self, nick, user, host):
|
def _format_host_mask(self, nick, user, host):
|
||||||
|
|
|
@ -7,6 +7,10 @@ class AccountSupport(rfc1459.RFC1459Support):
|
||||||
## Internal.
|
## Internal.
|
||||||
|
|
||||||
def _create_user(self, nickname):
|
def _create_user(self, nickname):
|
||||||
|
# Servers aren't users here, either!
|
||||||
|
if "." in nickname:
|
||||||
|
return
|
||||||
|
|
||||||
super()._create_user(nickname)
|
super()._create_user(nickname)
|
||||||
self.users[nickname].update({
|
self.users[nickname].update({
|
||||||
'account': None,
|
'account': None,
|
||||||
|
|
|
@ -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