diff options
author | June McEnroe <june@causal.agency> | 2018-08-18 20:14:05 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-18 20:14:05 -0400 |
commit | c1e012880362427fd1f29ce8c4d1ac9120f38ac2 (patch) | |
tree | 9880d7945b88ea10c43160dc85a445ee9fd77b4e | |
parent | Alias /n to /view n where n is a number (diff) | |
download | catgirl-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 '')
-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)); } |