aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkongr45gpen <kongr45gpen@helit.org>2013-07-30 14:23:34 +0300
committerkongr45gpen <kongr45gpen@helit.org>2013-07-30 14:23:34 +0300
commit80b6831b4afa8003441b5317e9aac90a09c5e74f (patch)
tree773ceaf418056d0d01a4a7997bd8af98a60832e3
parent6147c3f885dee63889e1d69ded038211e45f6497 (diff)
downloadsupybot_github-80b6831b4afa8003441b5317e9aac90a09c5e74f.tar.gz
supybot_github-80b6831b4afa8003441b5317e9aac90a09c5e74f.tar.bz2
supybot_github-80b6831b4afa8003441b5317e9aac90a09c5e74f.zip
Rename shortURLs into shortURL
-rw-r--r--config.py2
-rw-r--r--plugin.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.py b/config.py
index 6fd8e61..2c04845 100644
--- a/config.py
+++ b/config.py
@@ -20,7 +20,7 @@ conf.registerGlobalValue(Github, 'channel',
registry.String('#commits', """Determines the channel where commit
notifications will go by default."""))
-conf.registerGlobalValue(Github, 'shortURLs',
+conf.registerGlobalValue(Github, 'shortURL',
registry.Boolean(True, """Use git.io to produce shorter URLs"""))
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
diff --git a/plugin.py b/plugin.py
index 796aa90..d98cb4d 100644
--- a/plugin.py
+++ b/plugin.py
@@ -72,7 +72,7 @@ def registryValue(plugin, name, channel=None, value=True):
return group
def getShortURL(longurl):
- if registryValue("Github","shortURLs") is False:
+ if registryValue("Github","shortURL") is False:
return longurl
data = 'url=%s' % (longurl)
req = urllib2.Request("http://git.io", data)

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