diff options
| author | ilotterytea <iltsu@alright.party> | 2025-10-26 21:50:01 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-10-26 21:50:01 +0500 |
| commit | 051ec346e7e0f2581d15ffd8a696caa195c989e4 (patch) | |
| tree | 0111161f0434f122421f467757d53d3f4a1bc157 | |
| parent | 5069975b6987d42a2c3d15a8e95d546cd8c743eb (diff) | |
feat: ping messages
| -rw-r--r-- | scripts/chat.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/chat.js b/scripts/chat.js index 1bb889a..8f7e31f 100644 --- a/scripts/chat.js +++ b/scripts/chat.js @@ -170,6 +170,8 @@ function connectToChat(host, nick, password, room) { membership.joined.push(m.nick); } else if (m.command == "PART" && m.nick != "justinfan12345") { membership.parted.push(m.nick); + } else if (m.command == "PING") { + socket.send(`PONG :${m.params[0]}`); } } }); |
