projects
/
zzz-dywypi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
26a61c9
)
Pokedex: Fix item links.
author
Eevee
<git@veekun.com>
Thu, 13 May 2010 07:35:37 +0000
(
00:35
-0700)
committer
Eevee
<git@veekun.com>
Thu, 13 May 2010 21:56:47 +0000
(14:56 -0700)
plugins/Pokedex/plugin.py
patch
|
blob
|
history
diff --git
a/plugins/Pokedex/plugin.py
b/plugins/Pokedex/plugin.py
index
62f11b6
..
11a4aff
100644
(file)
--- 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')),
)
)