From 85e9035535d88f9ce2e1c873eb60b71fc25402c0 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 29 May 2005 16:54:57 +0000 Subject: [PATCH] plugins/RSS: Fix a bug in RSS.remove. --- plugins/RSS/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index b63a7d8c4..318910596 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -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'])