Commit Graph

888 Commits

Author SHA1 Message Date
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
asgdf
6631aced03 Modlog: properly trim and sanitize search string (#3606) 2017-06-11 22:37:01 -05:00
panpawn
f3d5e59103 Modlog: Fix when to link in modlog output (#3613)
Orda-Y pointed this out; basically, it should be like this "since hidden rooms still give roomlog access"
2017-06-11 22:33:31 -05:00
panpawn
602560a132 Modlog: Add permission checking back
This was not included in the recent modlog refactor
2017-06-11 21:06:11 +02:00
Konrad Borowski
096e236afc Document scavengers infractions commands (#3610) 2017-06-11 10:17:08 -05:00
Konrad Borowski
ece7db83fd Improve regex escaping in modlog (#3607) 2017-06-11 10:05:25 -05:00
asgdf
92c0a84dc8 Fix modlog (#3603) 2017-06-11 01:25:48 -05:00
asgdf
c25d23a7f0 Refactor modlog (#3569) 2017-06-10 12:32:55 -05:00
CheeseMuffin
b455d34311 Scavengers: Update Error Messages (#3600) 2017-06-10 12:32:09 -05:00
Charlie Kobayashi
fa4474543a Scavenger-Games: Add KOGames mode (#3597) 2017-06-09 15:36:42 -05:00
urkerab
276c4ad116 Dexsearch should use exact inequalities instead of fudging the comparison value (#3582) 2017-06-06 09:16:03 -05:00
Charlie Kobayashi
a314d44d42 Scavengers: update leak guard (#3587)
- match msgId to the ``toId()`` form of the answer.
2017-06-06 02:24:49 +04:00
urkerab
a4bbede19b Dexsearch should use the Gen 7 LC banlist (#3586) 2017-06-06 02:24:18 +04:00
CheeseMuffin
0d62603397 Dexsearch: Add height (#3580) 2017-06-05 11:55:29 -05:00
Charlie Kobayashi
dc51f4210f Scavengers: improve multiple connection check (#3579)
- filter by IPs to avoid false positives
2017-06-05 03:02:42 -05:00
CheeseMuffin
83efb5b191 Fix jeopardy (#3576) 2017-06-05 06:24:36 +08:00
Charlie Kobayashi
7217398080 Scavengers: update leaderboard formatting (#3567)
- only bold non-auth in the top 5 of the leaderboard, rather than top 3 non-auth overall
2017-05-31 04:50:30 +04:00
Charlie Kobayashi
50c1c88cba Scavengers: Refactor Leaderboard, add new functions (#3555) 2017-05-28 14:26:27 +09:00
Charlie Kobayashi
1f7accfe6b Scavengers: Remove logging (#3550) 2017-05-24 20:36:43 -04:00
Charlie Kobayashi
f861dfddfe Scavengers: Add leak block, fix grammar, autojoining, /leavehunt (#3540) 2017-05-24 23:58:42 +09:00
Guangcong Luo
044366f770 Suppress blankvote error
Closes #3218
2017-05-18 05:38:14 -05:00
Charlie Kobayashi
49b1f5bd7f Scavengers: autolink links in scavenger hunts. (#3527) 2017-05-17 23:09:30 -05:00
urkerab
8ca39d65fc Properly report a near miss for an alias (#3532) 2017-05-14 07:22:20 -05:00
Ben Davies
92c6c3e3ac Trivia: fix crash in Trivia#destroy, pause when too many players absent (#3531) 2017-05-13 19:35:57 -05:00
Guangcong Luo
77e9ec2251 Fix Jeopardy: Part B 2017-05-10 22:25:52 -04:00
Charlie Kobayashi
eec8d69920 Update scavengers.js (#3519) 2017-05-10 20:23:03 -05:00
Jacob McLemore
925b40361d Add /damagecalc as alias of /calc (#3517) 2017-05-10 13:54:37 -05:00
Quinton Lee
2f272f6323 Jeopardy: fix ending games 2017-05-10 00:11:30 -05:00
panpawn
9738bfbdf1 Roomsettings: Use Chat.html for a template string (#3515) 2017-05-09 14:08:07 -05:00
Charlie Kobayashi
b90703623d Update uno.js (#3513)
- announces the presence of a game when a user joins the room.  Players will immediately see their hand instead.
- wild cards will cause the top card display to inherit the changed colour
2017-05-08 23:05:39 -05:00
Charlie Kobayashi
d1e9a5cdcd Modjoin: escape HTML for banner display (#3510) 2017-05-08 19:34:32 -05:00
Charlie Kobayashi
1c96b80694 Scavengers: add new mode, and statistic logging (#3507)
* Scavengers: add new mode, and statistic logging

* Use single quotes for keywords
2017-05-08 01:06:47 -05:00
panpawn
ffec6037c1 Roomsettings: Make UNO and Hangman text uniform (#3511)
Based on how we do stretching/capitals with the "off" language for being disabled, these should probably use that, too.

Also, "enable" and "enabled" were inconsistent, so this changes that, too.
2017-05-08 00:17:36 -05:00
Charlie Kobayashi
770d4d94fe Poll: Fix display (#3506)
- make all poll options align left
2017-05-07 16:30:34 -05:00
CheeseMuffin
fc4ca40ef8 Refactor Jeopardy (#3468) 2017-05-07 04:37:30 -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
Bär Halberkamp
e33d81b39f Wifi: Improve API for GTS Giveaways 2017-05-03 18:13:41 +02:00
Bär Halberkamp
767cd57a03 Wifi: /left also displays last winners 2017-05-03 18:13:41 +02:00
Quinton Lee
bce279eeb0 Fix validation of multiple moves in /dexsearch 2017-04-29 11:49:20 -05:00
Bär Halberkamp
8cb162baf8 Wifi: improve GTS GA ending window 2017-04-28 20:33:22 +02:00
Bär Halberkamp
31622af0d3 Wifi: fix an absolutely baffling typo 2017-04-28 20:32:09 +02:00
Bär Halberkamp
cf86ae56d4 Wifi: more self-importance (the credits weren't really accurate) 2017-04-28 20:32:09 +02:00
Ben Davies
8de4bdfecb Sockets: refactor to use maps (#3474) 2017-04-23 16:39:38 -07:00
Charlie Kobayashi
a1ccee96e3 Scavengers: Fix point distribution (#3471)
- dont stop giving points at the 6th user for official hunts
2017-04-22 03:16:11 -04:00
Charlie Kobayashi
01205e835a Scavengers: Partially lower permissions, fix display (#3466)
- allow % and up to view what the scavenger points are set at, but only allow RO's to set
- use ``staffHostName`` instead of ``staffHostId`` to preserve formatting of the staff member's name in the display.
2017-04-20 20:34:09 -04:00
Bär Halberkamp
f7dbcf482f Wifi: fix mistake in the GTS GA window 2017-04-21 01:38:02 +02:00
Bär Halberkamp
32f02596ab Wifi: fix url regex 2017-04-20 00:46:23 +02:00
Bär Halberkamp
a3eb5963d6 Wifi: allow announcing IGNs for GTS giveaways 2017-04-19 22:18:38 +02:00
Charlie Kobayashi
40cadd5a03 Scavengers: Changes requested by scavenger staff (#3460) 2017-04-17 02:20:49 -04:00