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

inspircd: don't allow _ in hosts

CHGHOST on InspIRCd 2.0 does not see this as valid.
This commit is contained in:
James Lu 2019-02-12 15:53:58 -08:00
parent a9f59307c9
commit ac8b7babf1

View File

@ -17,7 +17,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.protocol_caps |= {'slash-in-nicks', 'slash-in-hosts', 'underscore-in-hosts'} self.protocol_caps |= {'slash-in-nicks', 'slash-in-hosts'}
# Set our case mapping (rfc1459 maps "\" and "|" together, for example). # Set our case mapping (rfc1459 maps "\" and "|" together, for example).
self.casemapping = 'rfc1459' self.casemapping = 'rfc1459'