mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-01 23:52:34 +01:00
automode: bandaid fix for "service already registered" errors on first load
This commit is contained in:
parent
38793654ea
commit
e2a853c98e
@ -13,7 +13,7 @@ mydesc = ("The \x02Automode\x02 plugin provides simple channel ACL management by
|
||||
"to users matching hostmasks or exttargets.")
|
||||
|
||||
# Register ourselves as a service.
|
||||
modebot = utils.registerService("automode", desc=mydesc)
|
||||
modebot = world.services.get("automode", utils.registerService("automode", desc=mydesc))
|
||||
reply = modebot.reply
|
||||
|
||||
# Databasing variables.
|
||||
|
Loading…
Reference in New Issue
Block a user