From 1bd2bd760c36f72fcfb6f917c4c9c5a16ac50210 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 27 Apr 2016 16:42:38 -0700 Subject: [PATCH] hybrid, nefarious: add missing BURST/SJOIN->JOIN hook mapping Reported by Rascle on IRC. --- protocols/hybrid.py | 2 +- protocols/nefarious.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/hybrid.py b/protocols/hybrid.py index 3a07f9c..dffff13 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -18,7 +18,7 @@ class HybridProtocol(TS6Protocol): self.casemapping = 'ascii' self.caps = {} - self.hook_map = {'EOB': 'ENDBURST', 'TBURST': 'TOPIC'} + self.hook_map = {'EOB': 'ENDBURST', 'TBURST': 'TOPIC', 'SJOIN': 'JOIN'} def connect(self): """Initializes a connection to a server.""" diff --git a/protocols/nefarious.py b/protocols/nefarious.py index cfedfff..251031f 100644 --- a/protocols/nefarious.py +++ b/protocols/nefarious.py @@ -66,7 +66,7 @@ class P10Protocol(Protocol): # SID generator for P10. 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): self.irc.send("%s %s" % (source, text))