From 051ec346e7e0f2581d15ffd8a696caa195c989e4 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 26 Oct 2025 21:50:01 +0500 Subject: feat: ping messages --- scripts/chat.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') 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]}`); } } }); -- cgit v1.2.3