RSS: Use del instead of pop.

This commit is contained in:
James Vega 2005-05-30 02:27:16 +00:00
parent 7fdb72ab4f
commit 34f5be5252
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ class RSS(callbacks.Plugin):
if name not in self.feedNames: if name not in self.feedNames:
irc.error('That\'s not a valid RSS feed command name.') irc.error('That\'s not a valid RSS feed command name.')
return return
self.feedNames.pop(name) del self.feedNames[name]
conf.supybot.plugins.RSS.feeds().remove(name) conf.supybot.plugins.RSS.feeds().remove(name)
conf.supybot.plugins.RSS.feeds.unregister(name) conf.supybot.plugins.RSS.feeds.unregister(name)
irc.replySuccess() irc.replySuccess()