Fixing .reload
This commit is contained in:
parent
65715536f2
commit
b69b9784ba
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user