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

ngircd: disable slash-in-nicks

This breaks user mode changes, as it is one of the only commands to undergo nick validation when received from a remote server.
This commit is contained in:
James Lu 2017-08-31 14:09:04 -07:00
parent 5c981c83b1
commit 2d2b524a63

View File

@ -32,8 +32,9 @@ class NgIRCdProtocol(IRCS2SProtocol):
# ngIRCd has no TS tracking.
self.protocol_caps.discard('has-ts')
# It is, however, flexible about nicks and hosts.
self.protocol_caps |= {'slash-in-hosts', 'slash-in-nicks', 'underscore-in-hosts'}
# Slash in nicks is problematic; while it works for basic things like JOIN and messages,
# attempts to set user modes fail.
self.protocol_caps |= {'slash-in-hosts', 'underscore-in-hosts'}
### Commands