3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

ratbox: handle ENCAP LOGIN (#338)

This commit is contained in:
James Lu 2016-10-01 12:39:25 -07:00
parent d943a8286f
commit 625e7b8aae

View File

@ -15,6 +15,8 @@ class RatboxProtocol(TS6Protocol):
# Don't require EUID for Ratbox
self.required_caps.discard('EUID')
self.hook_map['LOGIN'] = 'CLIENT_SERVICES_LOGIN'
def connect(self):
"""Initializes a connection to a server."""
super().connect()
@ -83,4 +85,9 @@ class RatboxProtocol(TS6Protocol):
log.debug('(%s) Got REALHOST %s for %s', args[0], uid)
self.irc.users[uid].realhost = args[0]
def handle_login(self, uid, command, args):
"""Handles login propagation on burst."""
self.irc.users[uid].services_account = args[0]
return {'text': args[0]}
Class = RatboxProtocol