3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

relay: treat SVSNICK as a cue to tag nicks

Closes #116.
This commit is contained in:
James Lu 2016-07-11 23:23:26 -07:00
parent 21d03e7b69
commit 59f6c861e0

View File

@ -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):