From a4eacc54431325c0983c454a23394ab70821e775 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Wed, 13 Sep 2023 09:41:14 -0400 Subject: [PATCH] Add config check back, since bun doesn't crash anymore...? --- src/ws/events/user/handlers/n.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ws/events/user/handlers/n.ts b/src/ws/events/user/handlers/n.ts index 125551d..195f26e 100644 --- a/src/ws/events/user/handlers/n.ts +++ b/src/ws/events/user/handlers/n.ts @@ -12,9 +12,7 @@ export const n: ServerEventListener<"n"> = { for (const n of msg.n) { if (typeof n.n != "string") return; - // TODO Check for config.enableCustomNoteData here - // For whatever reason, Bun likes to crash when we access that config object - continue; + if (config.enableCustomNoteData) continue; if (n.s) { if (typeof n.s !== "number") return;