From a5de51e93d4883d254277c3d18fa33cdcb5c44fa Mon Sep 17 00:00:00 2001 From: Aurastic <33085835+ISenseAura@users.noreply.github.com> Date: Sun, 15 Mar 2026 13:57:32 +0530 Subject: [PATCH] Preact: Support |nametaken| (#2583) --- play.pokemonshowdown.com/src/client-main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/play.pokemonshowdown.com/src/client-main.ts b/play.pokemonshowdown.com/src/client-main.ts index bd369542e..c0a20a5e9 100644 --- a/play.pokemonshowdown.com/src/client-main.ts +++ b/play.pokemonshowdown.com/src/client-main.ts @@ -2167,6 +2167,9 @@ export const PS = new class extends PSModel { } this.update(); continue; + } case 'nametaken': { + PS.join('login' as RoomID, { args: { error: `Someone is already using the name ${args[1]}.` } }); + break; } }