Commit Graph

348 Commits

Author SHA1 Message Date
Charlie Kobayashi
a3b049077d Checkpunishment: Show punishments for offline users (#4168) 2017-11-20 18:31:36 -06:00
Kris Johnson
86fbb45acc Standardize formatting of OM restrictions (#4129)
* Standardize formatting of OM restrictions

Since I've already started adding and changing all of the OM banlists to
allow them to be viewable though `/om`, I figured that I'd take the
final step and standardize all OM banlists and restrictions. It's
understandable if you want things like 1v1's banlist and ruleset to
remain the same as before; I'll happily revert that part.

* Remove unnecessary space

* Unban Blazikenite from 1v1

* Revert 1v1 banlist to original state

* Re add new lines at end of file
2017-11-09 23:36:24 +08:00
Kris Johnson
fc977a33b4 Modify AAA's validation code (#4125) 2017-11-04 23:50:27 -07:00
Spandan Punwatkar
bcdff7f5f6 Fix build; fix /coverage (#4117) 2017-11-02 10:19:55 -04:00
Spandan Punwatkar
a9fd7da4a8 Support mod parameter for /weak and /coverage (#4112) 2017-11-02 00:42:27 -05:00
Kris Johnson
e6bad3bc7a Make the formatting of all smogon links consistent (#4095) 2017-11-02 00:21:21 -05:00
HoeenHero
79e0db93e3 Allow ipsearch to search specific rooms (#4075) 2017-10-22 16:01:33 -05:00
Kris Johnson
2b67af932b Don't send people to HTTPS links on smogon (#4050)
Smogon doesn't support HTTPS.
2017-10-10 23:32:06 -05:00
Kris Johnson
33445f19e6 Don't send people with HTTPS pages with /smogdex (#4049)
People have reported getting errors like https://i.gyazo.com/778739472cf16b75377bef1c506a493d.png when using `/smogdex`. While this is a smogon-side issue, this is a temporary fix to that error.
2017-10-10 22:43:56 -05:00
urkerab
eee503a0d2 Default to battle room's data (#4017) 2017-09-25 04:45:30 +08:00
Bär Halberkamp
8a8747c62b /rules: Trim target before checking for 'delete'.
This makes it harder to accidentally set room rules to "delete "
2017-09-11 23:14:14 +02:00
MacChaeger
ed0d84b3cf /formathelp: Fix near matches (#3977) 2017-09-10 20:35:35 -04:00
panpawn
f95d78c3c5 Whois: Show locked users' private rooms to staff (#3953) 2017-09-05 03:44:58 -04:00
asgdf
81a8e0672d Fix crash in /viewbanlist (#3932) 2017-08-31 06:59:41 -04:00
MacChaeger
b113cc9a57 Add command /viewbanlist (#3914)
This command is intended to be a quick-access option for checking banlists and rulesets for formats as well as descriptions of the rules that would get listed in case the user has questions.
2017-08-31 04:51:45 -04:00
panpawn
74b1230f4f Whois: Only show AC if showAll is true (#3907) 2017-08-22 17:57:09 -07:00
panpawn
d2853ac9d6 Whois: Display if a user is autoconfirmed (#3903)
This will tell if the server considers a user to be autoconfirmed or not.
2017-08-22 15:45:27 -07:00
Marty-D
be279f3703 Show unreleased status of moves and items in /details 2017-08-21 10:15:56 -04:00
HoeenHero
e25653b86a Escape HTML in punishment info (#3835) 2017-07-28 14:07:54 -04:00
Spandan Punwatkar
597416d3b2 Move /othermetas to othermetas.js (#3812) 2017-07-21 11:36:17 -05:00
Lionyx
7be5ec4ab6 Update /bugs (#3790)
This should lower the number of reports in the thread that just turn out to be misunderstood uncommon mechanics, and hopefully will lessen the number of reports in Dev
2017-07-16 19:40:55 -05:00
Quinton Lee
d54582d132 Check for name changes in /checkchallenges 2017-07-14 15:55:25 -05:00
urkerab
133e28488e Simplify coding for links to Snatchable and Mirrorable moves (#3753) 2017-07-12 01:19:37 +09:00
urkerab
f90a1d665c Show Gen as CAP instead of 0 in detail output (#3751) 2017-07-10 17:03:07 +09:00
urkerab
a274e08a8f Don't show bogus Fling message in Gen 2/3 (#3752) 2017-07-09 14:50:56 +04:00
Guangcong Luo
b78350c1ec Make /dt dex-number lookup stricter
Previously, passing anything that started with a number to /dt would
make it look it up as a dex number.

This made it impossible to look up "10,000,000 Volt Thunderbolt".

Now, it has to be exactly a number and nothing else, to be considered
a dex number for the /dt lookup.
2017-06-23 06:49:58 -04:00
Ben Davies
e46c32a4b9 Commands: fix /processes crash (#3678) 2017-06-22 21:33:02 -07:00
jumbowhales
fece2a7d50 Veekun: show help if no target is given (#3668) 2017-06-20 21:55:28 -07:00
Spandan Punwatkar
d1400f4644 Refactor /data to generate HTML (#3378) 2017-06-19 17:02:47 -07:00
Lionyx
00e7948313 Fix /smogdex for Ubers (#3660)
Linking to a Smogon format analysis containing /ubers would give a wrong link in the current situation
2017-06-19 14:02:47 -07:00
Bär Halberkamp
961ffc3f9b Upgrade eslint to 4.x (#3657) 2017-06-18 22:37:43 -07:00
Bär Halberkamp
c198612e05 Improve display of shared IPs in /ip 2017-06-18 13:52:34 -07:00
panpawn
1da511b6f0 Enhance the rules command (#3617)
- Don't send double errorReply for when trying to set a room's rules in PMs
- Allow a way to delete a room's rules link
2017-06-11 22:38:54 -05:00
urkerab
8ca39d65fc Properly report a near miss for an alias (#3532) 2017-05-14 07:22:20 -05:00
Jacob McLemore
925b40361d Add /damagecalc as alias of /calc (#3517) 2017-05-10 13:54:37 -05:00
Guangcong Luo
6dd58b40d3 Refactor simulator into new sim/ directory
This is a surprisingly minor refactor considering how many files it
touches, but most of this is only renames.

In terms of file renames:
- `tools.js` is now `sim/dex.js`
- `battle-engine.js` is now `sim/index.js` and its three classes are
  in `sim/battle.js`, `sim/side.js`, and `sim/pokemon.js`
- `prng.js` is now `sim/prng.js`

In terms of variable renames:
- `Tools` is now `Dex`
- `BattleEngine` is now `Sim`
- `BattleEngine.Battle` is now `Sim.Battle`
- `BattleEngine.BattleSide` is now `Sim.Side`
- `BattleEngine.BattlePokemon` is now `Sim.Pokemon`
2017-05-05 16:48:38 -05:00
Guangcong Luo
3716f360ff TypeScript!
Currently TypeScript is validating tools.js and is not particularly
strict about anything and we use 'any' a lot and it's not part of
'npm test' yet, but everything has to start somewhere!

tools.js has also been refactored majorly to use accessors rather
than loader functions. This basically means you don't need to do
Tools.includeData() or anything like that anymore. The new system is
also easier to make TypeScript-compatible.

See #3278
2017-05-03 16:19:49 -07:00
Ben Davies
8de4bdfecb Sockets: refactor to use maps (#3474) 2017-04-23 16:39:38 -07:00
Quinton Lee
91d163a29f Implement /checkchallenges (#3328) 2017-03-24 16:19:43 -04:00
Guangcong Luo
8b25a865b9 Support /groups room and /groups global
Closes #3086
2017-02-24 00:53:16 -06:00
Kris Johnson
621b737ca3 info.js: add Ash-Greninja exception (#3282) 2017-02-23 18:25:58 -06:00
sparktrain
ee5f31bc71 Fix /caphelp (#3275)
Switch the HTML to unicode so the é displays correctly
2017-02-22 22:37:45 -06:00
spekss
dded0aa952 Replace <b> with <strong> in /groups (#3237) 2017-02-15 23:38:14 -06:00
spekss
5b1ceae9df Add bold in /punishments (#3236) 2017-02-15 23:37:56 -06:00
spekss
38842e957d Add badge faq (#3084)
(http://www.smogon.com/badge_faq)
2017-02-10 16:50:28 -06:00
Guangcong Luo
6e100ee5b7 Add /punishments
This is just a generic punishments list. Feel free to pullreq
improvements.

Closes #3200
2017-02-10 17:11:06 -05:00
Guangcong Luo
81f13a18f1 Add user groups to /whoare
Specifically, user groups are now in /checkpunishment, which has been
renamed /offlinewhois. It doesn't actually function as an offline /whois
since it still requires auth.

Maybe making it not require auth should be a project to put in Ideas.
2017-02-10 17:10:15 -05:00
sparktrain
9568791e76 Update /cap (#3187)
Update with link to the current sample team thread
2017-01-25 02:42:27 -05:00
Kris Johnson
ed4227a22d info.js: update /smogdex (#3070) 2017-01-02 10:27:43 -08:00
Bär Halberkamp
0c4f648ba6 Make ip-based room punishments show up on /ip 2016-12-30 02:58:03 +01:00