3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +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

@ -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):
""" """

View File

@ -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:'}