From f35ece814758700307eaeed43167ec4846e93057 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jul 2014 20:14:09 +0200 Subject: [PATCH] RSS: Fix stupid bugs. --- plugins/RSS/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index b1b1e5479..67f464988 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -42,6 +42,7 @@ import supybot.conf as conf import supybot.utils as utils import supybot.world as world from supybot.commands import * +import supybot.ircmsgs as ircmsgs import supybot.ircutils as ircutils import supybot.registry as registry import supybot.callbacks as callbacks @@ -269,7 +270,7 @@ class RSS(callbacks.Plugin): def announce_entry(self, irc, channel, feed, entry): if self.should_send_entry(channel, entry): - s = format_entry(channel, feed, entry, True) + s = self.format_entry(channel, feed, entry, True) irc.sendMsg(ircmsgs.privmsg(channel, s)) @@ -395,6 +396,8 @@ class RSS(callbacks.Plugin): except registry.NonExistentRegistryEntry: pass feed = self.get_feed(url) + if not feed: + feed = Feed(url, url) self.update_feed_if_needed(feed) info = feed.data if not info: