mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 12:12:53 +01:00
ratbox: handle ENCAP LOGIN (#338)
This commit is contained in:
parent
d943a8286f
commit
625e7b8aae
@ -15,6 +15,8 @@ class RatboxProtocol(TS6Protocol):
|
|||||||
# Don't require EUID for Ratbox
|
# Don't require EUID for Ratbox
|
||||||
self.required_caps.discard('EUID')
|
self.required_caps.discard('EUID')
|
||||||
|
|
||||||
|
self.hook_map['LOGIN'] = 'CLIENT_SERVICES_LOGIN'
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
"""Initializes a connection to a server."""
|
"""Initializes a connection to a server."""
|
||||||
super().connect()
|
super().connect()
|
||||||
@ -83,4 +85,9 @@ class RatboxProtocol(TS6Protocol):
|
|||||||
log.debug('(%s) Got REALHOST %s for %s', args[0], uid)
|
log.debug('(%s) Got REALHOST %s for %s', args[0], uid)
|
||||||
self.irc.users[uid].realhost = args[0]
|
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
|
Class = RatboxProtocol
|
||||||
|
Loading…
Reference in New Issue
Block a user