From c1e012880362427fd1f29ce8c4d1ac9120f38ac2 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 18 Aug 2018 20:14:05 -0400 Subject: [PATCH] Fix /query error handling Evidence this should be factored somehow else so the extra check is unnecessary. --- input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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", ¶ms, "name"); + char *nick = param("/query", ¶ms, "nick"); + if (!nick) return; tabTouch(TAG_NONE, nick); uiViewTag(tagFor(nick)); }