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

Fill in the rest of the extbans list for inspircd & unreal (#498)

This commit is contained in:
James Lu 2017-08-23 21:47:30 -07:00
parent de1a6379df
commit c6ca89b48a
3 changed files with 10 additions and 4 deletions

View File

@ -166,7 +166,7 @@ class PyLinkNetworkCore(utils.DeprecatedAttributesObject, utils.CamelCaseToSnake
# Acting extbans such as +b m:n!u@h on InspIRCd
self.extbans_acting = {}
# 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
# overwritten later by the protocol module if such information is

View File

@ -411,9 +411,15 @@ class InspIRCdProtocol(TS6BaseProtocol):
self._send_with_prefix(self.sid, 'ENDBURST')
# 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:',
'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):
"""

View File

@ -373,7 +373,7 @@ class UnrealProtocol(TS6BaseProtocol):
self._send_with_prefix(self.sid, 'EOS')
# 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:',
'ban_realname': '~r:', 'ban_account_legacy': '~R:', 'ban_certfp': '~S:'}