mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
changehost: listen for services account changes
This allows for consistent account based hostmasks for SASL gateways, etc.
This commit is contained in:
parent
4095eea3a7
commit
72e96156b5
@ -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>]
|
||||
|
Loading…
Reference in New Issue
Block a user