mirror of
https://github.com/jlu5/PyLink.git
synced 2025-05-05 22:27:24 +02:00
Start work on protocol capabilities (#337)
This commit is contained in:
parent
61cf48c37c
commit
2ca0cf05a0
@ -1377,6 +1377,9 @@ class Protocol():
|
|||||||
self.conf_keys = {'ip', 'port', 'hostname', 'sid', 'sidrange', 'protocol', 'sendpass',
|
self.conf_keys = {'ip', 'port', 'hostname', 'sid', 'sidrange', 'protocol', 'sendpass',
|
||||||
'recvpass'}
|
'recvpass'}
|
||||||
|
|
||||||
|
# Defines a set of PyLink protocol capabilities
|
||||||
|
self.protocol_caps = set()
|
||||||
|
|
||||||
def validateServerConf(self):
|
def validateServerConf(self):
|
||||||
"""Validates that the server block given contains the required keys."""
|
"""Validates that the server block given contains the required keys."""
|
||||||
for k in self.conf_keys:
|
for k in self.conf_keys:
|
||||||
|
@ -9,6 +9,11 @@ from pylinkirc.log import log
|
|||||||
|
|
||||||
class IRCS2SProtocol(Protocol):
|
class IRCS2SProtocol(Protocol):
|
||||||
|
|
||||||
|
def __init__(self, irc):
|
||||||
|
super().__init__(irc)
|
||||||
|
self.protocol_caps = {'can-spawn-clients', 'has-ts', 'can-host-relay',
|
||||||
|
'can-track-servers'}
|
||||||
|
|
||||||
def checkCollision(self, nick):
|
def checkCollision(self, nick):
|
||||||
"""
|
"""
|
||||||
Nick collision checker.
|
Nick collision checker.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user