mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 04:32:51 +01:00
hybrid, nefarious: add missing BURST/SJOIN->JOIN hook mapping
Reported by Rascle on IRC.
This commit is contained in:
parent
3b04d1abdc
commit
1bd2bd760c
@ -18,7 +18,7 @@ class HybridProtocol(TS6Protocol):
|
|||||||
|
|
||||||
self.casemapping = 'ascii'
|
self.casemapping = 'ascii'
|
||||||
self.caps = {}
|
self.caps = {}
|
||||||
self.hook_map = {'EOB': 'ENDBURST', 'TBURST': 'TOPIC'}
|
self.hook_map = {'EOB': 'ENDBURST', 'TBURST': 'TOPIC', 'SJOIN': 'JOIN'}
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
"""Initializes a connection to a server."""
|
"""Initializes a connection to a server."""
|
||||||
|
@ -66,7 +66,7 @@ class P10Protocol(Protocol):
|
|||||||
# SID generator for P10.
|
# SID generator for P10.
|
||||||
self.sidgen = P10SIDGenerator(irc)
|
self.sidgen = P10SIDGenerator(irc)
|
||||||
|
|
||||||
self.hook_map = {'END_OF_BURST': 'ENDBURST', 'OPMODE': 'MODE', 'CLEARMODE': 'MODE'}
|
self.hook_map = {'END_OF_BURST': 'ENDBURST', 'OPMODE': 'MODE', 'CLEARMODE': 'MODE', 'BURST': 'JOIN'}
|
||||||
|
|
||||||
def _send(self, source, text):
|
def _send(self, source, text):
|
||||||
self.irc.send("%s %s" % (source, text))
|
self.irc.send("%s %s" % (source, text))
|
||||||
|
Loading…
Reference in New Issue
Block a user