From e2a853c98ed5487344149ecf611e2171d9e1bf68 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Jul 2016 21:46:29 -0700 Subject: [PATCH] automode: bandaid fix for "service already registered" errors on first load --- plugins/automode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/automode.py b/plugins/automode.py index e51e69e..5f1609d 100644 --- a/plugins/automode.py +++ b/plugins/automode.py @@ -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.