mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
Fill in the rest of the extbans list for inspircd & unreal (#498)
This commit is contained in:
parent
de1a6379df
commit
c6ca89b48a
@ -166,7 +166,7 @@ class PyLinkNetworkCore(utils.DeprecatedAttributesObject, utils.CamelCaseToSnake
|
|||||||
# Acting extbans such as +b m:n!u@h on InspIRCd
|
# Acting extbans such as +b m:n!u@h on InspIRCd
|
||||||
self.extbans_acting = {}
|
self.extbans_acting = {}
|
||||||
# Matching extbans such as R:account on InspIRCd and $a:account on TS6.
|
# Matching extbans such as R:account on InspIRCd and $a:account on TS6.
|
||||||
self. extbans_matching = {}
|
self.extbans_matching = {}
|
||||||
|
|
||||||
# This max nick length starts off as the config value, but may be
|
# This max nick length starts off as the config value, but may be
|
||||||
# overwritten later by the protocol module if such information is
|
# overwritten later by the protocol module if such information is
|
||||||
|
@ -411,9 +411,15 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
self._send_with_prefix(self.sid, 'ENDBURST')
|
self._send_with_prefix(self.sid, 'ENDBURST')
|
||||||
|
|
||||||
# Extban definitions
|
# Extban definitions
|
||||||
self.extbans_acting = {'quiet': 'm:', 'ban_nonick': 'n:'}
|
self.extbans_acting = {'quiet': 'm:', 'ban_nonick': 'N:', 'ban_blockcolor': 'c:',
|
||||||
|
'ban_partmsgs': 'p:', 'ban_invites': 'A:', 'ban_blockcaps': 'B:',
|
||||||
|
'ban_noctcp': 'C:', 'ban_nokicks': 'Q:', 'ban_stripcolor': 'S:',
|
||||||
|
'ban_nonotice': 'T:'}
|
||||||
self.extbans_matching = {'ban_inchannel': 'j:', 'ban_realname': 'r:', 'ban_server': 's:',
|
self.extbans_matching = {'ban_inchannel': 'j:', 'ban_realname': 'r:', 'ban_server': 's:',
|
||||||
'ban_certfp': 'z:', 'ban_opertype': 'O:', 'ban_account': 'R:'}
|
'ban_certfp': 'z:', 'ban_opertype': 'O:', 'ban_account': 'R:',
|
||||||
|
# Note: InspIRCd /helpop refers to this as an acting extban, but
|
||||||
|
# it actually behaves as a matching one...
|
||||||
|
'ban_unregistered_matching': 'U:'}
|
||||||
|
|
||||||
def handle_capab(self, source, command, args):
|
def handle_capab(self, source, command, args):
|
||||||
"""
|
"""
|
||||||
|
@ -373,7 +373,7 @@ class UnrealProtocol(TS6BaseProtocol):
|
|||||||
self._send_with_prefix(self.sid, 'EOS')
|
self._send_with_prefix(self.sid, 'EOS')
|
||||||
|
|
||||||
# Extban definitions
|
# Extban definitions
|
||||||
self.extbans_acting = {'quiet': '~q:', 'ban_nonick': '~n:'}
|
self.extbans_acting = {'quiet': '~q:', 'ban_nonick': '~n:', 'ban_nojoins': '~j:'}
|
||||||
self.extbans_matching = {'ban_account': '~a:', 'ban_inchannel': '~c:', 'ban_opertype': '~o:',
|
self.extbans_matching = {'ban_account': '~a:', 'ban_inchannel': '~c:', 'ban_opertype': '~o:',
|
||||||
'ban_realname': '~r:', 'ban_account_legacy': '~R:', 'ban_certfp': '~S:'}
|
'ban_realname': '~r:', 'ban_account_legacy': '~R:', 'ban_certfp': '~S:'}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user