From 3ca9fd2e80c395d6457bc0db37f9acf0ba79cf35 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 18 Feb 2020 14:07:03 +0200 Subject: [PATCH] Unprefix setname cap --- src/models/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/network.js b/src/models/network.js index f621637b..604c6116 100644 --- a/src/models/network.js +++ b/src/models/network.js @@ -141,6 +141,7 @@ Network.prototype.createIrcFramework = function(client) { rejectUnauthorized: this.rejectUnauthorized, enable_chghost: true, enable_echomessage: true, + enable_setname: true, auto_reconnect: true, auto_reconnect_wait: 10000 + Math.floor(Math.random() * 1000), // If multiple users are connected to the same network, randomize their reconnections a little auto_reconnect_max_retries: 360, // At least one hour (plus timeouts) worth of reconnections @@ -148,7 +149,6 @@ 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 ]); @@ -238,7 +238,7 @@ Network.prototype.edit = function(client, args) { if ( connected && this.realname !== oldRealname && - this.irc.network.cap.isEnabled("draft/setname") + this.irc.network.cap.isEnabled("setname") ) { this.irc.raw("SETNAME", this.realname); }