Use the plugin name for Owner.defaultplugin's error message.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2010-09-20 18:20:52 -04:00
parent 154fbc30e9
commit 074ded49e4

View File

@ -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: