mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01: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):
|
||||
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'])
|
||||
|
Loading…
Reference in New Issue
Block a user