3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

hybrid: Fix TBURST, support WHOIS

This commit is contained in:
Daniel Oaks 2016-03-30 13:59:04 +10:00
parent 177e690dd3
commit 4b14134a17

View File

@ -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: