mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 06:39:43 +01:00
relay: workaround strict ident checks on hybrid
This commit is contained in:
parent
1b433b741b
commit
ed1644a636
@ -407,6 +407,10 @@ def spawn_relay_user(irc, remoteirc, user, times_tagged=0, reuse_sid=None):
|
|||||||
# Truncate idents at 10 characters, because TS6 won't like them otherwise!
|
# Truncate idents at 10 characters, because TS6 won't like them otherwise!
|
||||||
ident = ident[:10]
|
ident = ident[:10]
|
||||||
|
|
||||||
|
# HACK: hybrid will reject idents that start with a "-". why???
|
||||||
|
if remoteirc.protoname == 'hybrid' and ident.startswith('-'):
|
||||||
|
ident = 'r' + ident
|
||||||
|
|
||||||
# Normalize hostnames
|
# Normalize hostnames
|
||||||
host = normalize_host(remoteirc, userobj.host)
|
host = normalize_host(remoteirc, userobj.host)
|
||||||
realname = userobj.realname
|
realname = userobj.realname
|
||||||
|
Loading…
Reference in New Issue
Block a user