mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
Revert "ts6: handle ChatIRCd ENCAP USERMODE"
This reverts commit 785fc8d2d2
.
This feature isn't actually used yet and is relatively non-standard. Aside from that, the biggest issue so far is that ENCAP USERMODE doesn't give servers a way to explicitly acknowledge or reject(ignore) the mode change, which can lead to desyncs.
This commit is contained in:
parent
ab91acb2f7
commit
2245af1dba
@ -33,15 +33,10 @@ class TS6Protocol(TS6BaseProtocol):
|
||||
self.hook_map = {'SJOIN': 'JOIN', 'TB': 'TOPIC', 'TMODE': 'MODE', 'BMASK': 'MODE',
|
||||
'EUID': 'UID', 'RSFNC': 'SVSNICK', 'ETB': 'TOPIC',
|
||||
# ENCAP LOGIN is used on burst for EUID-less servers
|
||||
'USERMODE': 'MODE', 'LOGIN': 'CLIENT_SERVICES_LOGIN'}
|
||||
'LOGIN': 'CLIENT_SERVICES_LOGIN'}
|
||||
|
||||
self.required_caps = {'TB', 'ENCAP', 'QS', 'CHW'}
|
||||
|
||||
# From ChatIRCd: https://github.com/ChatLounge/ChatIRCd/blob/master/doc/technical/ChatIRCd-extra.txt
|
||||
# Our command handler rewrites ENCAP so that this is the exact same syntax as MODE.
|
||||
# <- :101AAAAAB ENCAP test.hub2 USERMODE 111AAAAAB :+Qw
|
||||
self.handle_usermode = self.handle_mode
|
||||
|
||||
### OUTGOING COMMANDS
|
||||
|
||||
def spawn_client(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||
|
Loading…
Reference in New Issue
Block a user