commit 71260654e872aa8cf4919439fb16174c9f937aca
parent 5fc053455f7402fa975b1b50dc3903258bbab188
Author: hhvn <dev@hhvn.uk>
Date: Mon, 20 Dec 2021 13:08:51 +0000
s/handle.c: fix nick corruption
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/handle.c b/src/handle.c
@@ -459,8 +459,8 @@ handle_NICK(char *msg, char **params, struct Server *server, time_t timestamp) {
if ((chnick = nick_get(&chan->nicks, nick->nick)) != NULL) {
snprintf(prefix, sizeof(prefix), ":%s!%s@%s",
newnick, chnick->ident, chnick->host);
- nick_add(&chan->nicks, prefix, chnick->priv, server);
nick_remove(&chan->nicks, nick->nick);
+ nick_add(&chan->nicks, prefix, chnick->priv, server);
if (selected.channel == chan)
windows[Win_nicklist].refresh = 1;
}