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
Diffstat (limited to '')
-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",
the content is a bit of a hack but oh well. 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe