mirror of
https://github.com/thelounge/thelounge
synced 2025-02-17 05:38:25 +00:00
Only send SETNAME if the cap is enabled
This commit is contained in:
parent
5d560c99b8
commit
8c10436630
1 changed files with 2 additions and 1 deletions
|
@ -134,6 +134,7 @@ Network.prototype.createIrcFramework = function(client) {
|
|||
});
|
||||
|
||||
this.irc.requestCap([
|
||||
"draft/setname", // https://github.com/ircv3/ircv3-specifications/pull/361
|
||||
"znc.in/self-message", // Legacy echo-message for ZNC
|
||||
]);
|
||||
|
||||
|
@ -216,7 +217,7 @@ Network.prototype.edit = function(client, args) {
|
|||
}
|
||||
}
|
||||
|
||||
if (connected && this.realname !== oldRealname) {
|
||||
if (connected && this.realname !== oldRealname && this.irc.network.cap.isEnabled("draft/setname")) {
|
||||
this.irc.raw("SETNAME", this.realname);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue