Fixing .reload again :')

This commit is contained in:
mrhanky 2017-08-21 18:27:33 +02:00
parent b69b9784ba
commit a75dcbb6c2
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -21,8 +21,7 @@ def reload(bot: irc3.IrcBot, mask: IrcString, target: IrcString,
""" """
plugin = args.get('<plugin>') plugin = args.get('<plugin>')
if plugin: if plugin:
plugin = '{}.{}'.format(plugin, MODULE) bot.reload('{}.{}'.format(MODULE, plugin))
bot.reload(plugin)
bot.privmsg(target, 'Reloaded plugin "{}"'.format(plugin)) bot.privmsg(target, 'Reloaded plugin "{}"'.format(plugin))
else: else:
bot.reload() bot.reload()