From fb626c8a97bcb26ba2bf14b84f5bec1ea9a63bfb Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 10 Mar 2017 23:27:10 -0800 Subject: [PATCH] services_support: remove workarounds for the PyLink service nick & ident being in conf::bot (#343) --- coremods/service_support.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/coremods/service_support.py b/coremods/service_support.py index ff634bb..adae0e3 100644 --- a/coremods/service_support.py +++ b/coremods/service_support.py @@ -120,11 +120,7 @@ def handle_commands(irc, source, command, args): utils.add_hook(handle_commands, 'PRIVMSG') # Register the main PyLink service. All command definitions MUST go after this! -mynick = conf.conf['bot'].get("nick", "PyLink") -myident = conf.conf['bot'].get("ident", "pylink") - # TODO: be more specific, and possibly allow plugins to modify this to mention # their features? -mydesc = "\x02%s\x02 provides extended network services for IRC." % mynick - -utils.registerService('pylink', nick=mynick, ident=myident, desc=mydesc, manipulatable=True) +mydesc = "\x02PyLink\x02 provides extended network services for IRC." +utils.registerService('pylink', desc=mydesc, manipulatable=True)