GitHub: fix announcement

master
Valentin Lorentz 2011-03-12 20:11:27 +01:00
parent 154a0e2654
commit b51826c7a0
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ conf.registerGlobalValue(GitHub, 'announces',
registry.String('', _("""You shouldn't edit this configuration
variable yourself, unless you know what you do. Use '@Github announce
add' or '@Github announce remove' instead.""")))
conf.registerGlobalValue(GitHub, 'tiny',
conf.registerChannelValue(GitHub, 'tiny',
registry.String('http://tinyurl.com/api-create.php', _("""The URL
used to tinyfy the commit link (must be compatible with TinyURL.com
""")))

View File

@ -139,7 +139,7 @@ class GitHub(callbacks.Plugin):
bold = ircutils.bold
url = commit['url']
data = urllib.urlencode({'url': url})
tiny = self.registryValue('tiny', channel)
tiny = instance.registryValue('tiny', channel)
url = urllib.urlopen(tiny, data).read()
s = '%s/%s (in %s): %s committed %s %s' % \
(payload['repository']['owner']['name'],