mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 16:26:15 -05:00
Make sure that alts leave when a user is banned from a room
This commit is contained in:
parent
bf001656ce
commit
6b7f71df0f
|
|
@ -407,6 +407,7 @@ var commands = exports.commands = {
|
|||
var altId = toId(alts[i]);
|
||||
this.add('|unlink|' + altId);
|
||||
room.bannedUsers[altId] = true;
|
||||
Users.getExact(altId).leaveRoom(room.id);
|
||||
}
|
||||
}
|
||||
this.add('|unlink|' + this.getLastIdOf(targetUser));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user