3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 12:12:53 +01:00

relay: force tags when a nick collision happens

This commit is contained in:
James Lu 2016-07-11 21:54:10 -07:00
parent 95ff33876c
commit bc369bf6a6

View File

@ -1387,7 +1387,8 @@ def nick_collide(irc, target):
nick = remoteirc.users[remoteuser].nick nick = remoteirc.users[remoteuser].nick
newnick = normalizeNick(irc, remotenet, nick) # Force a tagged nick by setting times_tagged to 1.
newnick = normalizeNick(irc, remotenet, nick, times_tagged=1)
log.info('(%s) relay.nick_collide: Fixing nick of relay client %r (%s) to %s', log.info('(%s) relay.nick_collide: Fixing nick of relay client %r (%s) to %s',
irc.name, target, nick, newnick) irc.name, target, nick, newnick)
irc.proto.nick(target, newnick) irc.proto.nick(target, newnick)