From 7c171b8affd8c27aac8cb9206318314b4041a56c Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Tue, 11 Feb 2020 18:23:04 -0500 Subject: Rename query ID on nick change --- handle.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'handle.c') diff --git a/handle.c b/handle.c index 48d4344..4e498e9 100644 --- a/handle.c +++ b/handle.c @@ -306,6 +306,9 @@ static void handleNick(struct Message *msg) { } size_t id; while (None != (id = completeID(msg->nick))) { + if (!strcmp(idNames[id], msg->nick)) { + set(&idNames[id], msg->params[0]); + } uiFormat( id, Cold, tagTime(msg), "\3%02d%s\3\tis now known as \3%02d%s\3", -- cgit 1.4.1-2-gfad0