Only send SETNAME if the cap is enabled
This commit is contained in:
parent
5d560c99b8
commit
8c10436630
@ -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…
Reference in New Issue
Block a user