Zarel/Pokemon-Showdown — pull request #169 by Jesin (2013-02-15 18:13:20+00:00)
Title: Hopefully fixed /dex command for CAP

I noticed that for most arguments, the /dex command either returns a correct Smogon analysis URL or displays a "pokemon not found" message. For CAPs, however, it currently returns an incorrect URL. I read through the source code for the "/dex" command, along with tools.js and several of the data files, and though I have not tested this code, I see no way it could break anything and I believe it should fix the bug.