summaryrefslogtreecommitdiffstats
path: root/ircbot
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-07 20:27:56 +0100
committerlassulus <lassulus@googlemail.com>2014-01-07 20:27:56 +0100
commit9d91f297622e45a79d6ed752615e635eccdc0707 (patch)
treeff568d5260ec6bd26f2afaf8c46e9b9c67cee81b /ircbot
parent0b8a962ad08fc5c7d0f5d75855f8011750cb6b54 (diff)
ircbot: notshorturl now in ircbot
Diffstat (limited to 'ircbot')
-rwxr-xr-xircbot/rssbot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py
index 531e50c5..14126f7a 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)
+ self.send(entry.title + " " + shorturl + '#' + entry.link.partition('://')[2].partition('/')[0])
self.oldnews.append(entry.link)
self.lastnew = datetime.now()
sleep(self.to)