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 /src | |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-nick.c | 18 |
1 files changed, 0 insertions, 18 deletions
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) |