3
0
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:
James Lu 2015-07-20 16:50:18 -07:00
parent a10a18d9cc
commit ef3aab69f2

View File

@ -27,7 +27,7 @@ def normalizeNick(irc, netname, nick, separator=None):
orig_nick = nick
protoname = irc.proto.__name__
maxnicklen = irc.maxnicklen
if protoname == 'charybdis':
if not protoname.startswith(('insp', 'unreal')):
# Charybdis doesn't allow / in usernames, and will quit with
# a protocol violation if there is one.
separator = separator.replace('/', '|')