From db13f34a4035f0feeab44fbe3da5676fb2c70eeb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 1 Jul 2020 12:12:56 +0200 Subject: [PATCH] Reply to PING --- components/app.js | 1 + lib/client.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/components/app.js b/components/app.js index f5ae2a3..43958fe 100644 --- a/components/app.js +++ b/components/app.js @@ -372,6 +372,7 @@ export default class App extends Component { break; case "CAP": case "AUTHENTICATE": + case "PING": // Ignore these break; default: diff --git a/lib/client.js b/lib/client.js index b705682..825756c 100644 --- a/lib/client.js +++ b/lib/client.js @@ -106,6 +106,9 @@ export default class Client extends EventTarget { console.error("SASL error:", msg); this.close(); break; + case "PING": + this.send({ command: "PONG", params: [msg.params[0]] }); + break; case "NICK": var newNick = msg.params[0]; if (msg.prefix.name == this.nick) {