Commit Graph

23714 Commits

Author SHA1 Message Date
Marty-D
6c6750b5b9 Fix moves for USUM Ver 1.1 2017-12-14 11:32:39 -05:00
The Immortal
d3b5f1cdcd Random Battle: Fix Scald/Hydro Pump check 2017-12-14 18:57:37 +08:00
Guangcong Luo
4e603d79d6 Fix chatqueue not flushing sometimes 2017-12-14 05:13:28 -05:00
Guangcong Luo
832201e30d VGC: End game if foe times out while disconnected 2017-12-14 04:57:27 -05:00
Jeremy Piemonte
56c999c6b0 Subrooms: Fix more crashes (#4251)
- Don't allow setting a room to be a subroom of itself.
- Don't allow setting a parent room to be a subroom
2017-12-14 03:57:20 -06:00
Jeremy Piemonte
b1dfaa93fd Subrooms: Modlog who changes state (#4250) 2017-12-14 03:35:00 -06:00
Jeremy Piemonte
d1f9f4a037 Subrooms: Fix a crash from a typo (#4249) 2017-12-14 03:34:21 -06:00
Jeremy Piemonte
4921ff350d Subrooms: Allow command to accept room aliases (#4248) 2017-12-14 03:33:57 -06:00
Guangcong Luo
577098db83 Disallow empty subRooms map 2017-12-13 23:40:16 -06:00
Guangcong Luo
c63e57f2e9 Defer joining restricted HTML rooms until login
This makes it so staff-only HTML rooms can defer rendering until the
user has logged in.

This also introduces a new constant `Rooms.RETRY_AFTER_LOGIN` which
makes it clearer what returning `null` means in context.
2017-12-13 23:33:33 -06:00
Guangcong Luo
8bf5d1489a Make groupchats/help rooms always report joins 2017-12-13 23:33:33 -06:00
Guangcong Luo
e67ef68cb5 Move reportJoin code to Room class 2017-12-13 23:33:33 -06:00
Guangcong Luo
13984dd2a9 Formatter: Recompile linkRegex 2017-12-13 23:33:33 -06:00
Bär Halberkamp
65a82f28f0 Add a system for subrooms (#4014) 2017-12-13 23:33:25 -06:00
Guangcong Luo
e5a48cd8c1 Change help ticket claiming
Staff members no longer auto-claim their own tickets upon joining.

Closing a ticket claims it as well.
2017-12-13 16:12:04 -06:00
Guangcong Luo
9ee2c6f888 Redesign Help ticket list 2017-12-13 16:12:04 -06:00
Charlie Kobayashi
703393642e UNO: colour + UNO interaction, make UNO button easier to press (#4247) 2017-12-13 15:33:59 -06:00
Guangcong Luo
51d5f67adb Fix chat queue bug 2017-12-13 15:46:55 -05:00
Guangcong Luo
df6792a588 Support !requesthelp 2017-12-13 02:19:31 -06:00
Guangcong Luo
fcde94b026 Add /helprequest as alias of /requesthelp 2017-12-13 01:07:15 -06:00
Guangcong Luo
50266ae4d2 Redesign Help ticket notification 2017-12-13 01:07:01 -06:00
Guangcong Luo
f13093177b Rename help ticket roomids
`view-ticket-create` -> `view-help-request`
`view-ticket-list` -> `view-help-tickets`
2017-12-12 16:01:36 -06:00
The Immortal
1114121ac5 Random Battle: Improvements 2017-12-13 05:43:28 +08:00
The Immortal
1c6d98664a Fix Baton Pass clause 2017-12-13 05:28:49 +08:00
Guangcong Luo
73969dfee7 Fix a mistaken constant access 2017-12-12 14:53:01 -06:00
HoeenHero
06c0fcce5d Dont notify staff about ticket bans (#4244) 2017-12-12 14:50:50 -06:00
Guangcong Luo
ff6ed65d1c Remove a redundant modlog implementation 2017-12-12 14:50:08 -06:00
Guangcong Luo
f403a5d3ea Refactor some forEach to for...of 2017-12-12 14:50:08 -06:00
Guangcong Luo
b87edd4de9 Access searches/challenges through Ladders
In general I like to make non-local variable accesses clearer, hence
this.

...should maybe mention this in CONTRIBUTING.md
2017-12-12 14:50:08 -06:00
Guangcong Luo
81f47cd51f Fix extraneous message when leaving HTML rooms 2017-12-12 15:34:42 -05:00
HoeenHero
a4a3f85e9b Remove ticket alias (#4243) 2017-12-12 12:20:45 -06:00
HoeenHero
735e6e4d06 Help Tickets: Bug fixes & Improvements (#4242) 2017-12-12 11:15:32 -06:00
Guangcong Luo
32673acb59 Improve modlog link API 2017-12-12 04:26:11 -05:00
Guangcong Luo
3731d5b943 Improve handling of leading newline in !code 2017-12-12 03:23:10 -06:00
Guangcong Luo
6dfcb131ca Use new HTML-room system for Help tickets 2017-12-12 03:22:09 -06:00
Guangcong Luo
c8ad406de5 Use new HTML-room system for Modlog 2017-12-12 03:22:09 -06:00
Guangcong Luo
d07113dd35 New library: Dashycode
Dashycode is a library for encoding string data in restricted strings
in the [a-z0-9-] character set (namely, roomids).

...its main use is passing arbitrary string data in roomids, for HTML
rooms.
2017-12-12 03:22:09 -06:00
Marty-D
4d3440fedb
Tests: Fix Clangorous Soulblaze choices 2017-12-11 21:27:55 -05:00
Kris Johnson
5eaaf856ec Fix Mix and Mega suspect test banlist (#4241) 2017-12-11 21:26:40 -05:00
MacChaeger
fae30ca078 Dancer shouldn't activate after the battle has ended (#4240) 2017-12-11 16:21:01 -05:00
Guangcong Luo
8b58622b51 Don't start chall battle if cancelled
Challenge battles will no longer start if they've been cancelled after
being accepted, but before team validation completes.
2017-12-11 13:23:57 -06:00
Guangcong Luo
937d9ee3e0 Clarify /tour rules syntax 2017-12-11 13:23:26 -06:00
Charlie Kobayashi
7b5aa6209e Ladders: Fix clearChallenges (#4236) 2017-12-11 13:08:46 -06:00
Guangcong Luo
a07e035191 Ladders: Don't crash if challenge already removed 2017-12-11 13:04:57 -06:00
Guangcong Luo
ef4ae2b761 Support HTML room panels server-side
HTML rooms now hook into `/join`, which makes it possible to do things
like link to them and auto-reopen them.
2017-12-11 13:04:24 -06:00
Guangcong Luo
ec30f2acc8 Stop processing chat queue for offline users 2017-12-11 13:04:24 -06:00
Charlie Kobayashi
c2183dad1d Formatter: Don't embed links within links (#4238) 2017-12-11 13:03:15 -06:00
Zach Hartin
f4a66ba977 Add new aliases (#4239) 2017-12-11 11:49:06 -05:00
urkerab
dc3945ff86 Protect should not affect Clangorous Soulblaze's other target (#4237)
Closes #4232
2017-12-11 09:02:24 -05:00
Charlie Kobayashi
377ff30a18 Scavengers: Increase cooldown, show official times (#4235) 2017-12-10 22:44:37 -06:00