about summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-14 23:37:09 -0400
committerJune McEnroe <june@causal.agency>2018-09-14 23:37:09 -0400
commit3e2a9c20569478e9f50a86c20fb7e7ec245c9d01 (patch)
tree061215de0e1a0ee04d33c385347d2b7fca37e031 /handle.c
parentRun test binaries with set -e and semicolons (diff)
downloadcatgirl-3e2a9c20569478e9f50a86c20fb7e7ec245c9d01.tar.gz
catgirl-3e2a9c20569478e9f50a86c20fb7e7ec245c9d01.zip
Factor out uiPrompt to call on nick change
Diffstat (limited to '')
-rw-r--r--handle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index 938315b..05e94e4 100644
--- a/handle.c
+++ b/handle.c
@@ -315,7 +315,10 @@ static void handleNick(char *prefix, char *params) {
 	char *prev, *user, *next;
 	shift(prefix, &prev, &user, NULL, params, 1, 0, &next);
 
-	if (isSelf(prev, user)) selfNick(next);
+	if (isSelf(prev, user)) {
+		selfNick(next);
+		uiPrompt();
+	}
 
 	struct Tag tag;
 	while (TagNone.id != (tag = tabTag(prev)).id) {