mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
relay: coerse "/" to "|" in nicks if "/" isn't present in the separator
a.k.a. make J*anus* happy :)
This commit is contained in:
parent
c8e7b72065
commit
6d6606900e
@ -40,7 +40,7 @@ def normalizeNick(irc, netname, nick, separator=None, uid=''):
|
|||||||
orig_nick = nick
|
orig_nick = nick
|
||||||
protoname = irc.proto.__name__
|
protoname = irc.proto.__name__
|
||||||
maxnicklen = irc.maxnicklen
|
maxnicklen = irc.maxnicklen
|
||||||
if not protoname.startswith(('insp', 'unreal')):
|
if '/' not in separator or not protoname.startswith(('insp', 'unreal')):
|
||||||
# Charybdis doesn't allow / in usernames, and will SQUIT with
|
# Charybdis doesn't allow / in usernames, and will SQUIT with
|
||||||
# a protocol violation if it sees one.
|
# a protocol violation if it sees one.
|
||||||
separator = separator.replace('/', '|')
|
separator = separator.replace('/', '|')
|
||||||
|
Loading…
Reference in New Issue
Block a user