summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-07 20:43:37 +0100
committerlassulus <lassulus@googlemail.com>2014-01-07 20:43:37 +0100
commitf8279b4cfa83073890b0d819d64b49b93e96ce6e (patch)
tree9c0215ff74bd8d891e0636d39d9acbea368de089
parent452b234c61a2c4ba8d2c4af00e0c2cdc0007dced (diff)
ircbot: fix newline in url
-rwxr-xr-xircbot/rssbot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py
index 14126f7a..5e2ca577 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 + '#' + entry.link.partition('://')[2].partition('/')[0])
+ self.send(entry.title + " " + shorturl.strip('\n') + '#' + entry.link.partition('://')[2].partition('/')[0])
self.oldnews.append(entry.link)
self.lastnew = datetime.now()
sleep(self.to)