mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
Move handle_realhost/handle_login to ts6
This commit is contained in:
parent
dfa90378df
commit
8df7b5319e
@ -86,14 +86,4 @@ class RatboxProtocol(TS6Protocol):
|
||||
"""update_client() stub for ratbox."""
|
||||
raise NotImplementedError("User data changing is not supported on ircd-ratbox.")
|
||||
|
||||
def handle_realhost(self, uid, command, args):
|
||||
"""Handles real host propagation."""
|
||||
log.debug('(%s) Got REALHOST %s for %s', args[0], uid)
|
||||
self.users[uid].realhost = args[0]
|
||||
|
||||
def handle_login(self, uid, command, args):
|
||||
"""Handles login propagation on burst."""
|
||||
self.users[uid].services_account = args[0]
|
||||
return {'text': args[0]}
|
||||
|
||||
Class = RatboxProtocol
|
||||
|
@ -688,4 +688,14 @@ class TS6Protocol(TS6BaseProtocol):
|
||||
# <- :00A ENCAP somenet.relay RSFNC 801AAAAAB Guest75038 1468299643 :1468299675
|
||||
return {'target': args[0], 'newnick': args[1]}
|
||||
|
||||
def handle_realhost(self, uid, command, args):
|
||||
"""Handles real host propagation."""
|
||||
log.debug('(%s) Got REALHOST %s for %s', args[0], uid)
|
||||
self.users[uid].realhost = args[0]
|
||||
|
||||
def handle_login(self, uid, command, args):
|
||||
"""Handles login propagation on burst."""
|
||||
self.users[uid].services_account = args[0]
|
||||
return {'text': args[0]}
|
||||
|
||||
Class = TS6Protocol
|
||||
|
Loading…
Reference in New Issue
Block a user