3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-23 19:19:31 +01:00

protocols: declare quiet extban support where applicable

This commit is contained in:
James Lu 2017-08-05 21:52:34 -07:00
parent b9a58670ef
commit 7db811f2dd
3 changed files with 9 additions and 0 deletions

View File

@ -152,6 +152,9 @@ class PyLinkNetworkCore(utils.DeprecatedAttributesObject, utils.CamelCaseToSnake
'oper': 'o',
'*A': '', '*B': '', '*C': '', '*D': 'iosw'}
# Acting extbans such as +b m:n!u@h on InspIRCd
self.extbans_acting = {}
# This max nick length starts off as the config value, but may be
# overwritten later by the protocol module if such information is
# received. It defaults to 30.

View File

@ -410,6 +410,9 @@ class InspIRCdProtocol(TS6BaseProtocol):
self._send_with_prefix(self.sid, 'VERSION :%s' % self.version())
self._send_with_prefix(self.sid, 'ENDBURST')
# Extban definitions
self.extbans_acting = {'quiet': 'm:'}
def handle_capab(self, source, command, args):
"""
Handles the CAPAB command, used for capability negotiation with our

View File

@ -374,6 +374,9 @@ class UnrealProtocol(TS6BaseProtocol):
f('NETINFO 1 %s %s * 0 0 0 :%s' % (self.start_ts, self.proto_ver, self.serverdata.get("netname", self.name)))
self._send_with_prefix(self.sid, 'EOS')
# Extban definitions
self.extbans_acting = {'quiet': '~q:'}
def handle_eos(self, numeric, command, args):
"""EOS is used to denote end of burst."""
return {}