From fb74179f587560f6d5a2281765a5f4e3e305a652 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 7 Apr 2016 18:23:18 -0700 Subject: [PATCH] hybrid: handle services logins on burst too --- protocols/hybrid.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocols/hybrid.py b/protocols/hybrid.py index 6d2fccc..6d33840 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -173,9 +173,15 @@ class HybridProtocol(TS6Protocol): log.debug('Applying modes %s for %s', parsedmodes, uid) utils.applyModes(self.irc, uid, parsedmodes) self.irc.servers[numeric].users.add(uid) + # Call the OPERED UP hook if +o is being added to the mode list. if ('+o', None) in parsedmodes: self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC_Operator'}]) + + # Set the account name if present + if account: + self.irc.callHooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': account}]) + return {'uid': uid, 'ts': ts, 'nick': nick, 'realname': realname, 'host': host, 'ident': ident, 'ip': ip} def handle_tburst(self, numeric, command, args):