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:
parent
b9a58670ef
commit
7db811f2dd
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user