mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
relay: make '/' support in nicks explicit instead of implicit
This commit is contained in:
parent
a10a18d9cc
commit
ef3aab69f2
@ -27,7 +27,7 @@ def normalizeNick(irc, netname, nick, separator=None):
|
|||||||
orig_nick = nick
|
orig_nick = nick
|
||||||
protoname = irc.proto.__name__
|
protoname = irc.proto.__name__
|
||||||
maxnicklen = irc.maxnicklen
|
maxnicklen = irc.maxnicklen
|
||||||
if protoname == 'charybdis':
|
if not protoname.startswith(('insp', 'unreal')):
|
||||||
# Charybdis doesn't allow / in usernames, and will quit with
|
# Charybdis doesn't allow / in usernames, and will quit with
|
||||||
# a protocol violation if there is one.
|
# a protocol violation if there is one.
|
||||||
separator = separator.replace('/', '|')
|
separator = separator.replace('/', '|')
|
||||||
|
Loading…
Reference in New Issue
Block a user