From 5ba646238dc6ea0f2d56c84932e7947facaef035 Mon Sep 17 00:00:00 2001 From: Zhorken Date: Mon, 8 Mar 2010 21:07:22 -0500 Subject: [PATCH] Pokedex: Link to veekun rather than beta-veekun. Most of the links are the same, and beta-veekun stops being beta in a week or so. --- plugins/Pokedex/plugin.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/Pokedex/plugin.py b/plugins/Pokedex/plugin.py index e3a925e..512ff2b 100644 --- a/plugins/Pokedex/plugin.py +++ b/plugins/Pokedex/plugin.py @@ -153,7 +153,7 @@ class Pokedex(callbacks.Plugin): u"""{name}, {type}-type {damage_class} move. """ \ """{power} power; {accuracy}% accuracy; {pp} PP. """ \ """{effect} """ \ - """http://beta.veekun.com/dex/moves/{link_name}""" + """http://veekun.com/dex/moves/{link_name}""" self._reply(irc, reply_template.format( name=obj.name, type=obj.type.name, @@ -174,14 +174,20 @@ class Pokedex(callbacks.Plugin): ) elif isinstance(obj, tables.Item): - self._reply(irc, u"""{name}, an item. http://beta.veekun.com/dex/items/{link_name}""".format( + reply_template = \ + u"""{name}, an item. """ \ + """http://veekun.com/dex/abilities/{link_name}""" + self._reply(irc, reply_template.format( name=obj.name, link_name=urllib.quote(obj.name.lower()), ) ) elif isinstance(obj, tables.Ability): - self._reply(irc, u"""{name}, an ability. {effect} http://beta.veekun.com/dex/abilities/{link_name}""".format( + reply_template = \ + u"""{name}, an ability. {effect} """ \ + """http://veekun.com/dex/abilities/{link_name}""" + self._reply(irc, reply_template.format( name=obj.name, effect=obj.effect, link_name=urllib.quote(obj.name.lower()), -- 2.7.4