diff options
author | June McEnroe <june@causal.agency> | 2019-02-22 14:11:50 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-22 14:11:50 -0500 |
commit | e20c64d5d72e341abf8dc3cb38d7cfec371faafc (patch) | |
tree | 96890088e4645416c058ab3504feb63c1b16d9da /handle.c | |
parent | Replace "view" with "window" (diff) | |
download | catgirl-e20c64d5d72e341abf8dc3cb38d7cfec371faafc.tar.gz catgirl-e20c64d5d72e341abf8dc3cb38d7cfec371faafc.zip |
Reorganize UI code for the umpteenth time
It's actually in a good state now, I think.
Diffstat (limited to 'handle.c')
-rw-r--r-- | handle.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |