mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-14 14:59:29 -05:00
Update raw team length restriction to 25 KB (#2125)
This commit is contained in:
committed by
GitHub
parent
faf40776a0
commit
f0d9f53ded
@@ -914,8 +914,8 @@ function toId() {
|
||||
*/
|
||||
sendTeam: function (team) {
|
||||
var packedTeam = '' + Storage.getPackedTeam(team);
|
||||
if (packedTeam.length > 100 * 1024 - 6) {
|
||||
alert("Your team is over 100 KB, usually caused by having over 600 Pokemon in it. Please use a smaller team.");
|
||||
if (packedTeam.length > 25 * 1024 - 6) {
|
||||
alert("Your team is over 25 KB. Please use a smaller team.");
|
||||
return;
|
||||
}
|
||||
this.send('/utm ' + packedTeam);
|
||||
|
||||
Reference in New Issue
Block a user