diff --git a/plugins/relay.py b/plugins/relay.py index e6b18f8..96059ea 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -1408,6 +1408,17 @@ def handle_save(irc, numeric, command, args): utils.add_hook(handle_save, "SAVE") +def handle_svsnick(irc, numeric, command, args): + """ + Handles forced nick change attempts to relay clients, tagging their nick. + """ + target = args['target'] + + if isRelayClient(irc, target): + nick_collide(irc, target) + +utils.add_hook(handle_svsnick, "SVSNICK") + ### PUBLIC COMMANDS def create(irc, source, args):