aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-01-03 23:12:37 +0200
committerkongr45gpen <electrovesta@gmail.com>2017-01-03 23:13:15 +0200
commitfb353478e24e5e4341b86fec3a390906e5e8ce74 (patch)
tree0348d0cbc31a04ac0dae93d5dc7338afdaa3e5dd
parent5f2c9f63e3c318ee333ddbc4fbc22cfda760f299 (diff)
downloadsupybot_github-fb353478e24e5e4341b86fec3a390906e5e8ce74.tar.gz
supybot_github-fb353478e24e5e4341b86fec3a390906e5e8ce74.tar.bz2
supybot_github-fb353478e24e5e4341b86fec3a390906e5e8ce74.zip
Temporarily disable git.io URL shortening due to unidentified bug
-rw-r--r--local/utility.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/local/utility.py b/local/utility.py
index 1ae47a0..59dfd91 100644
--- a/local/utility.py
+++ b/local/utility.py
@@ -113,9 +113,11 @@ def getShortURL(longurl):
url = longurl
else:
data = 'url=%s' % (longurl)
- req = urllib2.Request("https://git.io/", data)
- response = urllib2.urlopen(req)
- url = response.info().getheader('Location')
+ # Temporarily disabled
+ url = longurl
+ #req = urllib2.Request("https://git.io/", data)
+ #response = urllib2.urlopen(req)
+ #url = response.info().getheader('Location')
return ircutils.mircColor(url, "purple")
getShortURL.github = re.compile('^([a-z]*\:\/\/)?([^\/]+.)?github.com')

© 2014-2024 Faster IT GmbH | imprint | privacy policy