From 8df7b5319efc2fbbaecd3989477ac7ade4e39e50 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 11 Aug 2017 12:21:41 -0700 Subject: [PATCH] Move handle_realhost/handle_login to ts6 --- protocols/ratbox.py | 10 ---------- protocols/ts6.py | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/protocols/ratbox.py b/protocols/ratbox.py index 472affd..a679ea1 100644 --- a/protocols/ratbox.py +++ b/protocols/ratbox.py @@ -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 diff --git a/protocols/ts6.py b/protocols/ts6.py index 7220927..81f883c 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -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