mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Use the plugin name for Owner.defaultplugin's error message.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 074ded49e4
)
Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
This commit is contained in:
parent
14a5f52b29
commit
771331232e
@ -315,7 +315,8 @@ class Owner(callbacks.Plugin):
|
||||
irc.errorInvalid('command', command)
|
||||
elif plugin:
|
||||
if not plugin.isCommand(command):
|
||||
irc.errorInvalid('command in the %s plugin' % plugin, command)
|
||||
irc.errorInvalid('command in the %s plugin' % plugin.name(),
|
||||
command)
|
||||
registerDefaultPlugin(command, plugin.name())
|
||||
irc.replySuccess()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user