summary refs log tree commit diff
diff options
context:
space:
mode:
authorCurtis McEnroe2018-08-18 20:14:05 -0400
committerCurtis McEnroe2018-08-18 20:14:05 -0400
commitc1e012880362427fd1f29ce8c4d1ac9120f38ac2 (patch)
tree9880d7945b88ea10c43160dc85a445ee9fd77b4e
parente29f67dde5c1ec8a76259b3f062a49deab028054 (diff)
Fix /query error handling
Evidence this should be factored somehow else so the extra check is
unnecessary.
-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));
 }