mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
nefarious: define protocol_caps in the right class...
This commit is contained in:
parent
ff6d961922
commit
bde27b0dde
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user