Do not send NICK command when nick not changed

If we get a presence, that is not always a nick change. Don't bother the
IRC server with a command to change the nick if we're not changing it.
This commit is contained in:
Stephen Paul Weber
2026-09-23 21:57:29 -05:00
parent ff173a8ea3
commit 99d7f8a41a
2 changed files with 15 additions and 0 deletions
+3
View File
@@ -596,6 +596,9 @@ void Bridge::send_irc_nick_change(const Iid& iid, const std::string& new_nick, c
if (!res_in_chan)
return;
IrcClient* irc = this->get_irc_client(iid.get_server());
if (new_nick == irc->get_own_nick())
return;
irc->send_nick_command(new_nick);
}