Commit Graph

23714 Commits

Author SHA1 Message Date
Guangcong Luo
b97115ff20 Export Roomlogs from Rooms 2017-12-19 20:45:46 -05:00
Guangcong Luo
27f1dae0ca Fix memory leak in Roomlogs 2017-12-19 20:45:46 -05:00
HoeenHero
227f7b4741 Modlog: Fix search all rooms (#4266) 2017-12-19 15:13:56 -06:00
HoeenHero
44ec13b79d Tickets: Fix expriation (#4265) 2017-12-19 15:12:42 -06:00
Marty-D
95e3b7f235
Update Minimize 2017-12-19 11:32:05 -05:00
Marty-D
63bec7bf32 Fix source of status for Flame/Toxic Orb
Relevant for Corrosion
2017-12-19 09:53:53 -05:00
Marty-D
2c9f8ba45f Fix multi-hit Mind Blown again
Went missing in
801883c53a
2017-12-19 09:51:40 -05:00
Guangcong Luo
e454c52774 Fix bug in battle updating 2017-12-19 01:05:41 -05:00
The Immortal
8d046d4d23
Commands: Rephrase /disableladder message 2017-12-19 13:57:23 +08:00
Guangcong Luo
18beca7e59 Fix lack of modlog in global room 2017-12-19 00:13:20 -05:00
Guangcong Luo
36c9af2b10 Dnsbl: Update hardcoded hostnames 2017-12-19 00:00:12 -05:00
Guangcong Luo
fe1097999e Improve broadcast command handling 2017-12-19 00:00:12 -05:00
Guangcong Luo
0d43204487 Change room log API
Interaction with room logs is changing to be more straightforward. This
is the first step of the change, which changes rooms.js.

- Rename: logEntry -> roomlog
- Rename: sendModCommand -> sendMods
- Rename: addLogMessage -> addByUser
- New function: sendModsByUser

The long-term plan is documented in:

https://github.com/Zarel/Pokemon-Showdown/pull/3972#issuecomment-352226219
2017-12-18 22:51:21 -06:00
Marty-D
61fba165c8 Learnsets: Silvally can't legally be taught Fire or Water Pledge
Despite technically having access to all three, the Pledge tutor selects
the move based on the Pokemon, and it's always Grass because it's the
first of the three.
2017-12-18 22:57:37 -05:00
The Immortal
7f752b3d5d Random Battle: Add custom level for Dugtrio 2017-12-19 11:53:24 +08:00
The Immortal
155df922a4
Add AAA suspect test 2017-12-19 11:42:42 +08:00
Quinton Lee
361b4d03cc
Fix crash in Dex.getFormat 2017-12-18 19:25:56 -06:00
HoeenHero
f78ae1d05a Fix uploading replays (#4264) 2017-12-18 19:03:03 -06:00
Guangcong Luo
9542ae2444 Include chat/etc in battle logs 2017-12-18 18:32:58 -06:00
Guangcong Luo
c74fefa2c7 Simplify getLog(0) in battles
It no longer sends useless `|choice|` and `|seed|` entries.
2017-12-18 17:45:07 -06:00
Guangcong Luo
f3705a3c17 Fix some roomlog bugs 2017-12-18 16:03:51 -06:00
Guangcong Luo
998c12b8b6 Update onJoin/onRename/onLeave for rooms 2017-12-18 16:03:51 -06:00
Guangcong Luo
ed646aaeb2 Add more debug lines for userCount desyncs 2017-12-18 16:03:51 -06:00
HoeenHero
af929aa2a6 Battles: Use room.add (#4263) 2017-12-18 15:36:30 -06:00
Teremiare
c8fadb61c9 Dexsearch: don't show nfe pokemon as lc (#4262) 2017-12-18 15:33:06 -06:00
Bär Halberkamp
3059a0d0fd Punishments: fix isRoomBanned returning punishments that aren't roombans or blacklists 2017-12-18 17:50:24 +01:00
The Immortal
433c905ec3
Remove Johto X Alola 2017-12-18 15:09:50 +08:00
The Immortal
e0b6bbe953
Update Mediocremons 2017-12-18 14:36:10 +08:00
Marty-D
6e6c268f4e
Datacenters: Add more ranges 2017-12-17 20:50:34 -05:00
ABC-Dragon-Buster
f4d5cf7e21 Formats: Update descs (#4261) 2017-12-17 20:11:52 +08:00
Ben Davies
540ce1513c Sockets: disable Config.wsdeflate by default
So it doesn't nag admins over not installing an optional dependency
2017-12-17 04:32:03 -04:00
Ben Davies
e57ea21b52 Sockets: fix typo 2017-12-16 23:21:12 -04:00
Quinton Lee
12d10c80d5
Fix !checkchallenges 2017-12-16 18:34:28 -06:00
Quinton Lee
61b126be9d
Sockets: fix crashlogger path 2017-12-16 17:47:08 -06:00
Guangcong Luo
5094631fcf Implement Roomlog library
Rooms now have their logging abstracted into their own file, which also
allows the rest of rooms.js to be simplified by a decent margin.

This is in preparation for using Redis as a backing for scrollback log
storage, which will give us a lot more RAM to work with.

My newest newest plan is actually to locally cache room scrollback, and
only read battle logs from Redis. This will make chatroom-joining
faster.
2017-12-16 15:40:45 -06:00
Guangcong Luo
193e948592 Move crashlogger.js -> lib/crashlogger.js 2017-12-16 15:40:45 -06:00
Guangcong Luo
738c60ed8b Move repl.js -> lib/repl.js 2017-12-16 15:40:45 -06:00
Guangcong Luo
a9540917f5 Move fs.js -> lib/fs.js 2017-12-16 15:40:45 -06:00
Jeremy Piemonte
f849a37f3b Sockets: Monitor is not defined (#4259) 2017-12-16 14:06:12 -06:00
Jeremy Piemonte
8ca648b9d1 Subrooms: Add more error checking & misc changes (#4260)
- Adds /desubroom alias to /unsubroom
- Adds /setsubroom alias to /subroom
- Adds error checking in /subroom to say "Did you mean /subrooms?"
- Now says the parent room when you do /subrooms in a subroom. Also adds /parentroom to do this as well
- Changes some non-changing `let` to `const`
- Removes unnecessary space following `Chat.html`
- Add message in /roomauth that references subroom auth
2017-12-16 20:46:43 +01:00
Bär Halberkamp
e7c489afc4 don't show hidden subrooms in the join room tab or !subrooms 2017-12-16 00:54:11 +01:00
whales
abdb2f5f1a Subrooms: Don't show access denied when checking a room's subrooms (#4256) 2017-12-15 15:58:31 -06:00
Morfent
777ba0fc5f Sockets: implement permessage-deflate support (#4253)
Permessage-deflate is an extensIon that compresses websocket messages with zlib.
SockJS already supports it (indirectly) and the client's load balancer already
inserts the header in the opening handshake when making a WebSocket connection.

Config.wsdeflate makes this optional and allows tweaking the extension's resource
usage.
2017-12-15 15:43:48 -06:00
Marty-D
a7598822b3
Datacenters: Add more ranges 2017-12-15 14:23:59 -05:00
The Immortal
ef1611766f
Add Doubles suspect test 2017-12-16 00:40:27 +08:00
urkerab
3648d0d611 Use zbroken minor for protection against Guardian of Alola (#4255) 2017-12-15 03:33:26 -06:00
Jeremy Piemonte
965b7f618b Help Tickets: Remove redundant |html| (#4252) 2017-12-14 14:11:57 -06:00
Marty-D
3ff22dcf2f
Fix Mega Evolution behaviour 2017-12-14 12:43:39 -05:00
MacChaeger
8d571be74e Fix certain Abilities not being overwritten by most forme changes (#4245) 2017-12-14 11:45:12 -05:00
Marty-D
63b07a3e7c Fix Core Enforcer 2017-12-14 11:39:10 -05:00