X-Git-Url: http://git.veekun.com/zzz-dywypi.git/blobdiff_plain/26a61c922cf86919eb7e3af2aa59a0d4662fcbb7..8b883a737552a647133c2572cb74d0291ba6a1e2:/plugins/Pokedex/plugin.py?ds=inline diff --git a/plugins/Pokedex/plugin.py b/plugins/Pokedex/plugin.py index 62f11b6..11a4aff 100644 --- a/plugins/Pokedex/plugin.py +++ b/plugins/Pokedex/plugin.py @@ -258,9 +258,10 @@ class Pokedex(callbacks.Plugin): elif isinstance(obj, tables.Item): reply_template = \ u"""{name}, an item. """ \ - """http://veekun.com/dex/items/{link_name}""" + """http://veekun.com/dex/items/{link_pocket}/{link_name}""" self._reply(irc, reply_template.format( name=obj.name, + link_pocket=urllib.quote(obj.pocket.name.lower().encode('utf8')), link_name=urllib.quote(obj.name.lower().encode('utf8')), ) )