Fixing .reload

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

View File

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