Skip to content

Commit 4c3f625

Browse files
authored
update disconnect packet
1 parent a797201 commit 4c3f625

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/client.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ class Client extends Connection {
183183
if (this.status === ClientStatus.Disconnected) return
184184
this.write('disconnect', {
185185
hide_disconnect_screen: hide,
186-
message: reason
186+
message: reason,
187+
filtered_message: ''
187188
})
188189
this.close(reason)
189190
}

src/serverPlayer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ class Player extends Connection {
117117
if (this.status === ClientStatus.Disconnected) return
118118
this.write('disconnect', {
119119
hide_disconnect_screen: hide,
120-
message: reason
120+
message: reason,
121+
filtered_message: ''
121122
})
122123
this.server.conLog('Kicked ', this.connection?.address, reason)
123124
setTimeout(() => this.close('kick'), 100) // Allow time for message to be recieved.

0 commit comments

Comments
 (0)