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:
James Vega 2010-09-20 18:20:52 -04:00 committed by Daniel Folkinshteyn
parent 14a5f52b29
commit 771331232e

View File

@ -315,7 +315,8 @@ class Owner(callbacks.Plugin):
irc.errorInvalid('command', command) irc.errorInvalid('command', command)
elif plugin: elif plugin:
if not plugin.isCommand(command): 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()) registerDefaultPlugin(command, plugin.name())
irc.replySuccess() irc.replySuccess()
else: else: