mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
relay: remove _ from hosts on ts6, ratbox
This commit is contained in:
parent
611b07e6bd
commit
3a852393bc
@ -182,6 +182,10 @@ def normalizeHost(irc, host):
|
||||
if irc.protoname not in ('inspircd', 'ts6', 'clientbot', 'nefarious'):
|
||||
# UnrealIRCd and IRCd-Hybrid don't allow slashes in hostnames
|
||||
host = host.replace('/', '.')
|
||||
if irc.protoname in ('ts6', 'ratbox'):
|
||||
# TS6 doesn't allow _ in hosts.
|
||||
host = host.replace('_', '.')
|
||||
|
||||
host = host.replace('\x03', '') # Strip colours
|
||||
host = host.replace('\x02', '') # Strip bold
|
||||
host = host.replace('\x1f', '') # Strip underline
|
||||
|
Loading…
Reference in New Issue
Block a user