summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-11 18:23:04 -0500
committerJune McEnroe <june@causal.agency>2020-02-11 18:23:04 -0500
commit7c171b8affd8c27aac8cb9206318314b4041a56c (patch)
treeae285f8731876ef1ed364b7907e3e93a86d1a6a2
parentCall completeClear when closing a window (diff)
downloadcatgirl-7c171b8affd8c27aac8cb9206318314b4041a56c.tar.gz
catgirl-7c171b8affd8c27aac8cb9206318314b4041a56c.zip
Rename query ID on nick change
-rw-r--r--handle.c3
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",
-23 14:33:18 -0500'>2019-12-23Handle folded From headersJune McEnroe 2019-12-23Restrict search to plain-text messagesJune McEnroe 2019-12-23Properly support using drill rather than digJune McEnroe 2019-12-22Document dig requirement in imbox(1)June McEnroe 2019-12-22Add CAVEAT about expecting plain-textJune McEnroe 2019-12-22Quote user, pass and mailboxJune McEnroe 2019-12-22Use sequence numbers rather than UIDsJune McEnroe 2019-12-22Use EXAMINE rather than SELECTJune McEnroe 2019-12-22Export To and CC headersJune McEnroe 2019-12-22Add missing includeJune McEnroe 2019-12-22Export In-Reply-To headersJune McEnroe 2019-12-21Add git-fetch-email to READMEJune McEnroe 2019-12-21Clarify purpose in READMEJune McEnroe 2019-12-21Add READMEJune McEnroe 2019-12-21Add copyright header to git-fetch-emailJune McEnroe 2019-12-21Add git-fetch-email to SEE ALSO of imboxJune McEnroe 2019-12-21Add git-fetch-email wrapperJune McEnroe 2019-12-21Determine host by SRV lookupJune McEnroe 2019-12-21Clean up remaining codeJune McEnroe 2019-12-21Clean up mboxrd codeJune McEnroe 2019-12-21Convert CRLF to LFJune McEnroe 2019-12-21Implement -CFSTJune McEnroe 2019-12-21Rewrite aspirational manualJune McEnroe 2019-12-21Null-terminate read literalsJune McEnroe