From f5153e841834bd78808c2e6dfe4e82e64c0736c7 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 7 Jan 2014 20:51:33 +0100 Subject: ircbot: fix cr in url --- ircbot/rssbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ircbot') diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py index 5e2ca577..225e6f13 100755 --- a/ircbot/rssbot.py +++ b/ircbot/rssbot.py @@ -58,7 +58,7 @@ class RssBot(irc.bot.SingleServerIRCBot): # self.send(entry.title + " " + entry.link + " com: " + entry.comments) #except AttributeError: shorturl = subprocess.check_output(["curl", "-sS", "-F", "uri=" + entry.link, self.url_shortener]).decode() - self.send(entry.title + " " + shorturl.strip('\n') + '#' + entry.link.partition('://')[2].partition('/')[0]) + self.send(entry.title + " " + shorturl.strip('\n').strip('\r') + '#' + entry.link.partition('://')[2].partition('/')[0]) self.oldnews.append(entry.link) self.lastnew = datetime.now() sleep(self.to) -- cgit v1.2.3