관리자 사이트 설정에 "채팅 도배 방지" 켜기/끄기(기본 끄기): 끄면 채팅·입력 중 신호에 속도 제한이 전혀 없고, 켜면 접속마다 초당 50개(한 번에 200개)와 해석 전 원시 한도. 메시지마다 설정을 읽어 저장하면 열린 접속에도 바로 적용. 게임 조작 한도와 잘못된 메시지 차단은 그대로

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 09:08:54 +09:00
parent 0bff06fa3e
commit 77e9688876
9 changed files with 105 additions and 10 deletions

View File

@@ -77,7 +77,14 @@ export function startServer(opts: StartOptions) {
});
const restored = rooms.restoreAll();
log('info', 'rooms restored', restored);
const gateway = new Gateway({ rooms, me: publicUser, log, onClose: (id) => users.touch(id), build: () => build });
const gateway = new Gateway({
rooms,
me: publicUser,
log,
onClose: (id) => users.touch(id),
build: () => build,
chatFloodGuard: () => settings.getSite().chatFloodGuard,
});
const removeGuest = (id: string) => {
rooms.leaveAll(id);
gateway.closeUser(id);