diff options
author | Curtis McEnroe | 2018-08-18 20:14:05 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-08-18 20:14:05 -0400 |
commit | c1e012880362427fd1f29ce8c4d1ac9120f38ac2 (patch) | |
tree | 9880d7945b88ea10c43160dc85a445ee9fd77b4e | |
parent | e29f67dde5c1ec8a76259b3f062a49deab028054 (diff) |
Fix /query error handling
Evidence this should be factored somehow else so the extra check is unnecessary.
-rw-r--r-- | input.c | 3 |
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", ¶ms, "name"); + char *nick = param("/query", ¶ms, "nick"); + if (!nick) return; tabTouch(TAG_NONE, nick); uiViewTag(tagFor(nick)); } |