Reply to PING
This commit is contained in:
parent
1131ca05ee
commit
db13f34a40
2 changed files with 4 additions and 0 deletions
|
@ -372,6 +372,7 @@ export default class App extends Component {
|
||||||
break;
|
break;
|
||||||
case "CAP":
|
case "CAP":
|
||||||
case "AUTHENTICATE":
|
case "AUTHENTICATE":
|
||||||
|
case "PING":
|
||||||
// Ignore these
|
// Ignore these
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -106,6 +106,9 @@ export default class Client extends EventTarget {
|
||||||
console.error("SASL error:", msg);
|
console.error("SASL error:", msg);
|
||||||
this.close();
|
this.close();
|
||||||
break;
|
break;
|
||||||
|
case "PING":
|
||||||
|
this.send({ command: "PONG", params: [msg.params[0]] });
|
||||||
|
break;
|
||||||
case "NICK":
|
case "NICK":
|
||||||
var newNick = msg.params[0];
|
var newNick = msg.params[0];
|
||||||
if (msg.prefix.name == this.nick) {
|
if (msg.prefix.name == this.nick) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue