diff options
author | C. McEnroe | 2020-02-11 18:23:04 -0500 |
---|---|---|
committer | C. McEnroe | 2020-02-11 18:23:04 -0500 |
commit | 7c171b8affd8c27aac8cb9206318314b4041a56c (patch) | |
tree | ae285f8731876ef1ed364b7907e3e93a86d1a6a2 /handle.c | |
parent | 7783d89448293030aae4cc678e567a70e130c054 (diff) |
Rename query ID on nick change
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 3 |
1 files changed, 3 insertions, 0 deletions
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", |