plugins/RSS: Fix a bug in RSS.remove.

This commit is contained in:
James Vega 2005-05-29 16:54:57 +00:00
parent fab281b9b7
commit 85e9035535

View File

@ -44,7 +44,7 @@ import supybot.callbacks as callbacks
def getFeedName(irc, msg, args, state):
if not registry.isValidRegistryName(args[0]):
irc.errorInvalid('feed name', name,
irc.errorInvalid('feed name', args[0],
'Feed names must not include spaces.')
state.args.append(callbacks.canonicalName(args.pop(0)))
addConverter('feedName', getFeedName)
@ -289,6 +289,7 @@ class RSS(callbacks.Plugin):
return
self.feedNames.remove(name)
delattr(self.__class__, name)
conf.supybot.plugins.RSS.feeds().remove(name)
conf.supybot.plugins.RSS.feeds.unregister(name)
irc.replySuccess()
remove = wrap(remove, ['feedName'])