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:
parent
dc298b3182
commit
fb626c8a97
@ -120,11 +120,7 @@ def handle_commands(irc, source, command, args):
|
|||||||
utils.add_hook(handle_commands, 'PRIVMSG')
|
utils.add_hook(handle_commands, 'PRIVMSG')
|
||||||
|
|
||||||
# Register the main PyLink service. All command definitions MUST go after this!
|
# 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
|
# TODO: be more specific, and possibly allow plugins to modify this to mention
|
||||||
# their features?
|
# their features?
|
||||||
mydesc = "\x02%s\x02 provides extended network services for IRC." % mynick
|
mydesc = "\x02PyLink\x02 provides extended network services for IRC."
|
||||||
|
utils.registerService('pylink', desc=mydesc, manipulatable=True)
|
||||||
utils.registerService('pylink', nick=mynick, ident=myident, desc=mydesc, manipulatable=True)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user