Preact: Support |nametaken| (#2583)

This commit is contained in:
Aurastic 2026-03-15 13:57:32 +05:30 committed by GitHub
parent 978a735297
commit a5de51e93d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}