diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-17 15:22:01 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-17 15:22:01 +0200 |
commit | fadee506642ee80f42027816cc6cb758dcb68011 (patch) | |
tree | 59c95738c98750e4ed58605dad49826525687314 | |
parent | 48a3baedd5119798cbc0030eb4ea0ff661f58cbb (diff) | |
download | weechat-fadee506642ee80f42027816cc6cb758dcb68011.zip |
irc: don't reset nick properties (prefixes/away/account/realname) on /names when the nick already exists (closes #1019)
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | src/plugins/irc/irc-nick.c | 18 |
2 files changed, 1 insertions, 18 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 066f7a5ea..ba3276109 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -43,6 +43,7 @@ Bug fixes:: * buflist: fix slow switch of buffer when there are a lot of buffers opened (issue #998) * buflist: add option "bar" in command /buflist, do not automatically add the "buflist" bar when the option buflist.look.enabled is off (issue #994) * buflist: fix crash on drag & drop of buffers + * irc: don't reset nick properties (prefixes/away/account/realname) on /names when the nick already exists (issue #1019) * irc: fix memory leak in case of error in "ecdsa-nist256p-challenge" SASL mechanism * relay: rebind on address after option relay.network.bind_address is changed * relay: fix parsing of CAP command arguments in irc protocol (issue #995) diff --git a/src/plugins/irc/irc-nick.c b/src/plugins/irc/irc-nick.c index cf3b294c2..391774741 100644 --- a/src/plugins/irc/irc-nick.c +++ b/src/plugins/irc/irc-nick.c @@ -466,25 +466,7 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel, /* nick already exists on this channel? */ ptr_nick = irc_nick_search (server, channel, nickname); if (ptr_nick) - { - /* remove old nick from nicklist */ - irc_nick_nicklist_remove (server, channel, ptr_nick); - - /* update nick */ - irc_nick_set_prefixes (server, ptr_nick, prefixes); - ptr_nick->away = away; - if (ptr_nick->account) - free (ptr_nick->account); - ptr_nick->account = (account) ? strdup (account) : NULL; - if (ptr_nick->realname) - free (ptr_nick->realname); - ptr_nick->realname = (realname) ? strdup (realname) : NULL; - - /* add new nick in nicklist */ - irc_nick_nicklist_add (server, channel, ptr_nick); - return ptr_nick; - } /* alloc memory for new nick */ if ((new_nick = malloc (sizeof (*new_nick))) == NULL) |