summary refs log tree commit diff
path: root/gateway/src/opcodes
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-11 21:48:48 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-11 21:48:48 +1000
commit4dab3a9bbe3c043a441bf23bdb496c9f308bee15 (patch)
tree047e2fb82ba36099eed2fb5a4b53c26ecabc6994 /gateway/src/opcodes
parentAdded missing props to ChannelModifySchema (diff)
downloadserver-4dab3a9bbe3c043a441bf23bdb496c9f308bee15.tar.xz
Trash ip logging
Diffstat (limited to 'gateway/src/opcodes')
-rw-r--r--gateway/src/opcodes/Identify.ts4
1 files changed, 3 insertions, 1 deletions
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}`)
 }