mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
hybrid: drop EX and IE from required capabilities
This fixes compatibility with hybrid trunk, commit ircd-hybrid/ircd-hybrid@981c61e36c
(cherry picked from commit 30dc4a2b27
)
Conflicts:
protocols/hybrid.py
This commit is contained in:
parent
a03214514c
commit
1f270c985f
@ -35,6 +35,7 @@ class HybridProtocol(TS6Protocol):
|
||||
'regmoderated': 'M', 'operonly': 'O', 'regonly': 'R',
|
||||
'sslonly': 'S', 'banexception': 'e', 'noknock': 'p',
|
||||
'registered': 'r', 'invex': 'I', 'paranoia': 'p',
|
||||
'banexception': 'e',
|
||||
# Now, map all the ABCD type modes:
|
||||
'*A': 'beI', '*B': 'k', '*C': 'l', '*D': 'cimnprstCMORS'
|
||||
}
|
||||
@ -157,7 +158,7 @@ class HybridProtocol(TS6Protocol):
|
||||
# we know what modes it supports (indeed, this is a standard list).
|
||||
# <- CAPAB :UNDLN UNKLN KLN TBURST KNOCK ENCAP DLN IE EX HOPS CHW SVS CLUSTER EOB QS
|
||||
self.irc.caps = caps = args[0].split()
|
||||
for required_cap in ('EX', 'IE', 'SVS', 'EOB', 'HOPS', 'QS', 'TBURST', 'SVS'):
|
||||
for required_cap in ('SVS', 'EOB', 'HOPS', 'QS', 'TBURST'):
|
||||
if required_cap not in caps:
|
||||
raise ProtocolError('%s not found in TS6 capabilities list; this is required! (got %r)' % (required_cap, caps))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user