mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
hybrid: Fix TBURST, support WHOIS
This commit is contained in:
parent
177e690dd3
commit
4b14134a17
@ -20,7 +20,7 @@ class HybridProtocol(TS6BaseProtocol):
|
|||||||
|
|
||||||
self.caps = {}
|
self.caps = {}
|
||||||
|
|
||||||
self.hook_map = {'EOB': 'ENDBURST', 'TBURST', 'TOPIC'}
|
self.hook_map = {'EOB': 'ENDBURST', 'TBURST': 'TOPIC'}
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
"""Initializes a connection to a server."""
|
"""Initializes a connection to a server."""
|
||||||
@ -338,6 +338,14 @@ class HybridProtocol(TS6BaseProtocol):
|
|||||||
self.irc.channels[channel].topicset = True
|
self.irc.channels[channel].topicset = True
|
||||||
return {'channel': channel, 'setter': setter, 'ts': ts, 'text': topic}
|
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):
|
def handle_ping(self, source, command, args):
|
||||||
"""Handles incoming PING commands."""
|
"""Handles incoming PING commands."""
|
||||||
# PING:
|
# PING:
|
||||||
|
Loading…
Reference in New Issue
Block a user