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)
|
uid = self.uidgen.next_uid(prefix=nick)
|
||||||
realname = args[-1]
|
realname = args[-1]
|
||||||
|
|
||||||
self.users[uid] = User(nick, int(time.time()), uid, source, ident=ident, host=host,
|
ts = int(time.time())
|
||||||
realname=realname)
|
self.users[uid] = User(nick, ts, uid, source, ident=ident, host=host, realname=realname)
|
||||||
parsedmodes = self.parse_modes(uid, [args[5]])
|
parsedmodes = self.parse_modes(uid, [args[5]])
|
||||||
self.apply_modes(uid, parsedmodes)
|
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):
|
def handle_ping(self, source, command, args):
|
||||||
if source == self.uplink:
|
if source == self.uplink:
|
||||||
# Note: SID = server name here
|
# Note: SID = server name here
|
||||||
|
Loading…
Reference in New Issue
Block a user