forked from CringeStudios/gamja
Enable echo-message
This commit is contained in:
parent
9d7704ea54
commit
0aa8cca483
@ -477,8 +477,11 @@ export default class App extends Component {
|
|||||||
|
|
||||||
var msg = { command: "PRIVMSG", params: [target, text] };
|
var msg = { command: "PRIVMSG", params: [target, text] };
|
||||||
this.client.send(msg);
|
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) {
|
handleBufferListClick(name) {
|
||||||
|
@ -2,7 +2,7 @@ import * as irc from "./irc.js";
|
|||||||
|
|
||||||
// Static list of capabilities that are always requested when supported by the
|
// Static list of capabilities that are always requested when supported by the
|
||||||
// server
|
// 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 {
|
export default class Client extends EventTarget {
|
||||||
ws = null;
|
ws = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user