Untiny: Add help for @untiny.

master
Valentin Lorentz 2012-04-19 16:08:28 +00:00
parent 96b450fd6b
commit 01151d861c
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ class Untiny(callbacks.Plugin):
This should describe *how* to use this plugin."""
@internationalizeDocstring
def untiny(self, irc, msg, args, url):
"""<url>
Return the whole URL for a tiny URL."""
data = json.load(getUrlFd(self.registryValue('service') % url))
if 'org_url' in data:
irc.reply(data['org_url'])