mirror of
https://github.com/jlu5/PyLink.git
synced 2025-10-14 23:47:22 +02:00
automode: call unregisterService() on unload
This commit is contained in:
parent
4f26a29196
commit
f97f2d2fda
@ -13,7 +13,7 @@ mydesc = ("The \x02Automode\x02 plugin provides simple channel ACL management by
|
|||||||
"to users matching hostmasks or exttargets.")
|
"to users matching hostmasks or exttargets.")
|
||||||
|
|
||||||
# Register ourselves as a service.
|
# Register ourselves as a service.
|
||||||
modebot = utils.registerService("Automode", desc=mydesc)
|
modebot = utils.registerService("automode", desc=mydesc)
|
||||||
reply = modebot.reply
|
reply = modebot.reply
|
||||||
|
|
||||||
# Databasing variables.
|
# Databasing variables.
|
||||||
@ -75,6 +75,8 @@ def die(sourceirc):
|
|||||||
log.debug("Automode: cancelling exportDB timer thread %s due to die()", threading.get_ident())
|
log.debug("Automode: cancelling exportDB timer thread %s due to die()", threading.get_ident())
|
||||||
exportdb_timer.cancel()
|
exportdb_timer.cancel()
|
||||||
|
|
||||||
|
utils.unregisterService('automode')
|
||||||
|
|
||||||
def setacc(irc, source, args):
|
def setacc(irc, source, args):
|
||||||
"""<channel> <mask> <mode list OR literal ->
|
"""<channel> <mask> <mode list OR literal ->
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user