summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-18 20:14:05 -0400
committerJune McEnroe <june@causal.agency>2018-08-18 20:14:05 -0400
commitc1e012880362427fd1f29ce8c4d1ac9120f38ac2 (patch)
tree9880d7945b88ea10c43160dc85a445ee9fd77b4e /input.c
parentAlias /n to /view n where n is a number (diff)
downloadcatgirl-c1e012880362427fd1f29ce8c4d1ac9120f38ac2.tar.gz
catgirl-c1e012880362427fd1f29ce8c4d1ac9120f38ac2.zip
Fix /query error handling
Evidence this should be factored somehow else so the extra check is
unnecessary.
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input.c b/input.c
index c6ceb88..9bf29ac 100644
--- a/input.c
+++ b/input.c
@@ -74,7 +74,8 @@ static void inputPart(struct Tag tag, char *params) {
 
 static void inputQuery(struct Tag tag, char *params) {
 	(void)tag;
-	char *nick = param("/query", &params, "name");
+	char *nick = param("/query", &params, "nick");
+	if (!nick) return;
 	tabTouch(TAG_NONE, nick);
 	uiViewTag(tagFor(nick));
 }