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