From 4b14134a1739c5f333a70932c6eddf43dce46ef6 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Wed, 30 Mar 2016 13:59:04 +1000 Subject: [PATCH] hybrid: Fix TBURST, support WHOIS --- protocols/hybrid.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/protocols/hybrid.py b/protocols/hybrid.py index 4aff5e3..e34a235 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -20,7 +20,7 @@ class HybridProtocol(TS6BaseProtocol): self.caps = {} - self.hook_map = {'EOB': 'ENDBURST', 'TBURST', 'TOPIC'} + self.hook_map = {'EOB': 'ENDBURST', 'TBURST': 'TOPIC'} def connect(self): """Initializes a connection to a server.""" @@ -338,6 +338,14 @@ class HybridProtocol(TS6BaseProtocol): self.irc.channels[channel].topicset = True return {'channel': channel, 'setter': setter, 'ts': ts, 'text': topic} + def handle_whois(self, numeric, command, args): + """Handles incoming WHOIS commands. + + Note: The core of WHOIS handling is done by coreplugin.py + (IRCd-independent), and not here.""" + # <- :0UYAAAAAH WHOIS 0T4AAAAAA :pylink + return {'target': args[0]} + def handle_ping(self, source, command, args): """Handles incoming PING commands.""" # PING: