3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

changehost: listen for services account changes

This allows for consistent account based hostmasks for SASL gateways, etc.
This commit is contained in:
James Lu 2019-10-09 20:30:58 -07:00
parent 4095eea3a7
commit 72e96156b5

View File

@ -113,6 +113,13 @@ def handle_chghost(irc, sender, command, args):
_changehost(irc, target)
utils.add_hook(handle_chghost, 'CHGHOST')
def handle_svslogin(irc, sender, command, args):
"""
Handles services account changes for changehost.
"""
_changehost(irc, sender)
utils.add_hook(handle_svslogin, 'CLIENT_SERVICES_LOGIN')
@utils.add_cmd
def applyhosts(irc, sender, args):
"""[<network>]