mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-23 09:35:04 -05:00
Fix reconnections
This commit is contained in:
@@ -534,6 +534,7 @@ class Battle {
|
||||
if (request[3]) data += `\n|sentchoice|${request[3]}`;
|
||||
(connection || user).sendTo(this.id, data);
|
||||
}
|
||||
if (!player.active) this.onJoin(user);
|
||||
}
|
||||
onUpdateConnection(user, connection) {
|
||||
this.onConnect(user, connection);
|
||||
|
||||
Reference in New Issue
Block a user