Fix /query error handling

Evidence this should be factored somehow else so the extra check is
unnecessary.
master
Curtis McEnroe 2018-08-18 20:14:05 -04:00
parent e29f67dde5
commit c1e0128803
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}