diff options
author | lassulus <lassulus@googlemail.com> | 2014-01-06 00:27:44 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-01-06 00:27:44 +0100 |
commit | fbc2cf879ea76a590923fbcd4bf6150be0aad35c (patch) | |
tree | 37be6bf213d0db87711dff9aa0140fd9af61a5b5 /ircbot | |
parent | b5a9bffee1ce0f51fa9637e08dbbe7bc8b32af05 (diff) |
ircbot: silent curl output
Diffstat (limited to 'ircbot')
-rwxr-xr-x | ircbot/rssbot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py index b73b4e41..c3e05d1e 100755 --- a/ircbot/rssbot.py +++ b/ircbot/rssbot.py @@ -56,7 +56,7 @@ class RssBot(irc.bot.SingleServerIRCBot): def send(self, string): urls = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', string) for url in urls: - shorturl = subprocess.check_output(["curl", "-F", "uri=" + url, "http://wall:1337"]).decode() + shorturl = subprocess.check_output(["curl", "-sS", "-F", "uri=" + url, "http://wall:1337"]).decode() string = string.replace(url, shorturl) if self.connection.connected: for line in string.split('\n'): |