Fix defaultPlugin to work with jemfinch's refactoring.

This commit is contained in:
James Vega 2005-02-18 13:40:05 +00:00
parent f50edbe008
commit 9ed5efaaef

View File

@ -290,7 +290,7 @@ class Owner(callbacks.Plugin):
for (option, arg) in optlist:
if option == 'remove':
remove = True
cbs = callbacks.findCallbackForCommand(irc, command)
(_, cbs) = irc.findCallbacksForArgs([command])
if remove:
try:
conf.supybot.commands.defaultPlugins.unregister(command)