From 4dab3a9bbe3c043a441bf23bdb496c9f308bee15 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 11 Sep 2022 21:48:48 +1000 Subject: Trash ip logging --- gateway/src/opcodes/Identify.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gateway/src/opcodes') diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts index 57c45d1f..bd36e052 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts @@ -237,7 +237,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { const d: ReadyEventData = { v: 8, - application, + application: application ?? undefined, user: privateUser, user_settings: user.settings, // @ts-ignore @@ -296,4 +296,6 @@ export async function onIdentify(this: WebSocket, data: Payload) { //TODO send VOICE_STATE_UPDATE to let the client know if another device is already connected to a voice channel await setupListener.call(this); + + console.log(`${this.ipAddress} identified as ${d.user.id}`) } -- cgit 1.5.1