about summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-07 23:44:03 -0500
committerJune McEnroe <june@causal.agency>2020-02-07 23:44:03 -0500
commit8b7cc1a0ed95e8a3ff413fa77eb12a3dca7fccb4 (patch)
treee43cd273a49365fefd2d3437da811bca350a56f2 /handle.c
parentUpdate completion on join, part, privmsg (diff)
downloadcatgirl-8b7cc1a0ed95e8a3ff413fa77eb12a3dca7fccb4.tar.gz
catgirl-8b7cc1a0ed95e8a3ff413fa77eb12a3dca7fccb4.zip
Clear completion for ID on self-part
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/handle.c b/handle.c
index 4faabba..b73d200 100644
--- a/handle.c
+++ b/handle.c
@@ -212,6 +212,9 @@ static void handleJoin(struct Message *msg) {
 static void handlePart(struct Message *msg) {
 	require(msg, true, 1);
 	size_t id = idFor(msg->params[0]);
+	if (self.nick && !strcmp(msg->nick, self.nick)) {
+		completeClear(id);
+	}
 	completeRemove(id, msg->nick);
 	uiFormat(
 		id, Cold, tagTime(msg),
22-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe