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:
parent
de1a6379df
commit
c6ca89b48a
@ -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