mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: allow slashes for clientbot
This commit is contained in:
parent
f970f760aa
commit
eb24e01619
@ -118,7 +118,7 @@ def normalizeNick(irc, netname, nick, times_tagged=0, uid=''):
|
|||||||
# Charybdis, IRCu, etc. don't allow / in nicks, and will SQUIT with a protocol
|
# Charybdis, IRCu, etc. don't allow / in nicks, and will SQUIT with a protocol
|
||||||
# violation if it sees one. Or it might just ignore the client introduction and
|
# violation if it sees one. Or it might just ignore the client introduction and
|
||||||
# cause bad desyncs.
|
# cause bad desyncs.
|
||||||
protocol_allows_slashes = protoname.startswith(('insp', 'unreal')) or \
|
protocol_allows_slashes = protoname.startswith(('insp', 'unreal', 'clientbot')) or \
|
||||||
irc.serverdata.get('relay_force_slashes')
|
irc.serverdata.get('relay_force_slashes')
|
||||||
|
|
||||||
if '/' not in separator or not protocol_allows_slashes:
|
if '/' not in separator or not protocol_allows_slashes:
|
||||||
|
Loading…
Reference in New Issue
Block a user