3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

services_support: remove workarounds for the PyLink service nick & ident being in conf::bot (#343)

This commit is contained in:
James Lu 2017-03-10 23:27:10 -08:00
parent dc298b3182
commit fb626c8a97

View File

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