3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

ts6_common, p10: declare protocol cap has-statusmsg

This commit is contained in:
James Lu 2017-12-21 01:34:41 -08:00
parent d81a9cd5c3
commit 16b491fdab
2 changed files with 7 additions and 1 deletions

View File

@ -166,7 +166,8 @@ class P10Protocol(IRCS2SProtocol):
'WALLCHOPS': 'NOTICE', 'WALLHOPS': 'NOTICE',
'WALLVOICES': 'NOTICE'}
self.protocol_caps |= {'slash-in-hosts', 'underscore-in-hosts'}
self.protocol_caps |= {'slash-in-hosts', 'underscore-in-hosts',
'has-statusmsg'}
# OPMODE is like SAMODE on other IRCds, and it follows the same modesetting syntax.
self.handle_opmode = self.handle_mode

View File

@ -107,6 +107,11 @@ class TS6BaseProtocol(IRCS2SProtocol):
# SID generator for TS6.
self.sidgen = TS6SIDGenerator(self)
# Most TS6 variations (unreal, inspircd, charybdis) support this. For
# pure TS6, we also require the CHW capability which explicitly declares
# support.
self.protocol_caps |= {'has-statusmsg'}
### OUTGOING COMMANDS
def kill(self, numeric, target, reason):