From e20c64d5d72e341abf8dc3cb38d7cfec371faafc Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 22 Feb 2019 14:11:50 -0500 Subject: Reorganize UI code for the umpteenth time It's actually in a good state now, I think. --- handle.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'handle.c') diff --git a/handle.c b/handle.c index 555e790..5281d8f 100644 --- a/handle.c +++ b/handle.c @@ -98,8 +98,7 @@ static void handleError(char *prefix, char *params) { char *mesg; parse(prefix, NULL, NULL, NULL, params, 1, 0, &mesg); if (self.quit) { - uiExit(); - exit(EX_OK); + uiExit(EX_OK); } else { errx(EX_PROTOCOL, "%s", mesg); } @@ -219,7 +218,7 @@ static void handleJoin(char *prefix, char *params) { if (!strcmp(nick, self.nick)) { tabTouch(TagNone, chan); - uiWindowTag(tag); + uiShowTag(tag); logReplay(tag); } tabTouch(tag, nick); @@ -404,7 +403,7 @@ static void handleNick(char *prefix, char *params) { free(self.nick); self.nick = strdup(next); if (!self.nick) err(EX_OSERR, "strdup"); - uiPrompt(); + uiPrompt(true); } struct Tag tag; -- cgit 1.4.1