From bde27b0dde2253c489f0d3b8130ff7c0077cf231 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 23 Mar 2017 22:46:12 -0700 Subject: [PATCH] nefarious: define protocol_caps in the right class... --- protocols/nefarious.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/nefarious.py b/protocols/nefarious.py index 85b39e1..0768f64 100644 --- a/protocols/nefarious.py +++ b/protocols/nefarious.py @@ -36,8 +36,6 @@ class P10SIDGenerator(): def __init__(self, irc): self.irc = irc - self.protocol_caps |= {'slash-in-hosts', 'underscore-in-hosts'} - try: query = irc.serverdata["sidrange"] except (KeyError, ValueError): @@ -77,6 +75,8 @@ class P10Protocol(IRCS2SProtocol): self.hook_map = {'END_OF_BURST': 'ENDBURST', 'OPMODE': 'MODE', 'CLEARMODE': 'MODE', 'BURST': 'JOIN'} + self.protocol_caps |= {'slash-in-hosts', 'underscore-in-hosts'} + def _send(self, source, text): self.irc.send("%s %s" % (source, text))