3
0
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:
James Lu 2016-04-27 16:42:38 -07:00
parent 3b04d1abdc
commit 1bd2bd760c
2 changed files with 2 additions and 2 deletions

View File

@ -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."""

View File

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