mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 21:11:12 -05:00
plugins/RSS: Fix a bug in RSS.remove.
This commit is contained in:
parent
fab281b9b7
commit
85e9035535
@ -44,7 +44,7 @@ import supybot.callbacks as callbacks
|
|||||||
|
|
||||||
def getFeedName(irc, msg, args, state):
|
def getFeedName(irc, msg, args, state):
|
||||||
if not registry.isValidRegistryName(args[0]):
|
if not registry.isValidRegistryName(args[0]):
|
||||||
irc.errorInvalid('feed name', name,
|
irc.errorInvalid('feed name', args[0],
|
||||||
'Feed names must not include spaces.')
|
'Feed names must not include spaces.')
|
||||||
state.args.append(callbacks.canonicalName(args.pop(0)))
|
state.args.append(callbacks.canonicalName(args.pop(0)))
|
||||||
addConverter('feedName', getFeedName)
|
addConverter('feedName', getFeedName)
|
||||||
@ -289,6 +289,7 @@ class RSS(callbacks.Plugin):
|
|||||||
return
|
return
|
||||||
self.feedNames.remove(name)
|
self.feedNames.remove(name)
|
||||||
delattr(self.__class__, name)
|
delattr(self.__class__, 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()
|
||||||
remove = wrap(remove, ['feedName'])
|
remove = wrap(remove, ['feedName'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user