Enable echo-message

This commit is contained in:
Simon Ser 2020-06-26 14:50:29 +02:00
parent 9d7704ea54
commit 0aa8cca483
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 6 additions and 3 deletions

View file

@ -477,8 +477,11 @@ export default class App extends Component {
var msg = { command: "PRIVMSG", params: [target, text] };
this.client.send(msg);
msg.prefix = { name: this.client.nick };
this.addMessage(target, msg);
if (!this.client.enabledCaps["echo-message"]) {
msg.prefix = { name: this.client.nick };
this.addMessage(target, msg);
}
}
handleBufferListClick(name) {

View file

@ -2,7 +2,7 @@ import * as irc from "./irc.js";
// Static list of capabilities that are always requested when supported by the
// server
const permanentCaps = ["message-tags", "server-time", "multi-prefix", "away-notify"];
const permanentCaps = ["message-tags", "server-time", "multi-prefix", "away-notify", "echo-message"];
export default class Client extends EventTarget {
ws = null;