3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

ts6: add CHW to required capabilities

This is implicitly used by relay when relaying @#channel messages.
This commit is contained in:
James Lu 2016-07-31 20:42:34 -07:00
parent 2ca3dfe689
commit ac358f4199

View File

@ -370,7 +370,7 @@ class TS6Protocol(TS6BaseProtocol):
# <- CAPAB :BAN CHW CLUSTER ENCAP EOPMOD EUID EX IE KLN KNOCK MLOCK QS RSFNC SAVE SERVICES TB UNKLN
self.irc.caps = caps = args[0].split()
for required_cap in ('EUID', 'SAVE', 'TB', 'ENCAP', 'QS'):
for required_cap in ('EUID', 'SAVE', 'TB', 'ENCAP', 'QS', 'CHW'):
if required_cap not in caps:
raise ProtocolError('%s not found in TS6 capabilities list; this is required! (got %r)' % (required_cap, caps))