From 074ded49e44903a0699dde194b493c25e7ab2de7 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 20 Sep 2010 18:20:52 -0400 Subject: [PATCH] Use the plugin name for Owner.defaultplugin's error message. Signed-off-by: James Vega --- plugins/Owner/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Owner/plugin.py b/plugins/Owner/plugin.py index 5c3d895f8..e0d6f5332 100644 --- a/plugins/Owner/plugin.py +++ b/plugins/Owner/plugin.py @@ -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: