1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

irc: fix nick comparison in function irc_server_set_nick

This commit is contained in:
Sébastien Helleu
2024-05-10 08:27:41 +02:00
parent 5991278637
commit e69cffd9bc
+1 -4
View File
@@ -864,11 +864,8 @@ irc_server_set_nick (struct t_irc_server *server, const char *nick)
struct t_irc_channel *ptr_channel;
/* if nick is the same, just return */
if ((!server->nick && !nick)
|| (server->nick && nick && strcmp (server->nick, nick) == 0))
{
if (weechat_strcmp (server->nick, nick) == 0)
return;
}
/* update the nick in server */
free (server->nick);