Reply to PING

This commit is contained in:
Simon Ser 2020-07-01 12:12:56 +02:00
parent 1131ca05ee
commit db13f34a40
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
2 changed files with 4 additions and 0 deletions

View File

@ -372,6 +372,7 @@ export default class App extends Component {
break;
case "CAP":
case "AUTHENTICATE":
case "PING":
// Ignore these
break;
default:

View File

@ -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) {