mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
ngircd: send an UID hook in user introductions
This commit is contained in:
parent
b6b1cbeb2d
commit
7b2f93fd4c
@ -150,11 +150,14 @@ class NgIRCdProtocol(IRCS2SProtocol):
|
||||
uid = self.uidgen.next_uid(prefix=nick)
|
||||
realname = args[-1]
|
||||
|
||||
self.users[uid] = User(nick, int(time.time()), uid, source, ident=ident, host=host,
|
||||
realname=realname)
|
||||
ts = int(time.time())
|
||||
self.users[uid] = User(nick, ts, uid, source, ident=ident, host=host, realname=realname)
|
||||
parsedmodes = self.parse_modes(uid, [args[5]])
|
||||
self.apply_modes(uid, parsedmodes)
|
||||
|
||||
return {'uid': uid, 'ts': ts, 'nick': nick, 'realhost': host, 'host': host, 'ident': ident,
|
||||
'parse_as': 'UID', 'ip': '0.0.0.0'}
|
||||
|
||||
def handle_ping(self, source, command, args):
|
||||
if source == self.uplink:
|
||||
# Note: SID = server name here
|
||||
|
Loading…
Reference in New Issue
Block a user