From bc369bf6a63837a40c1a06fee763a3aeae44dc37 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 11 Jul 2016 21:54:10 -0700 Subject: [PATCH] relay: force tags when a nick collision happens --- plugins/relay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 01b6284..e6b18f8 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -1387,7 +1387,8 @@ def nick_collide(irc, target): 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', irc.name, target, nick, newnick) irc.proto.nick(target, newnick)