3
0
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:
James Lu 2016-07-23 21:46:29 -07:00
parent 38793654ea
commit e2a853c98e

View File

@ -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.