summaryrefslogtreecommitdiff
path: root/handle.c
diff options
context:
space:
mode:
authorCurtis McEnroe2019-02-22 14:11:50 -0500
committerCurtis McEnroe2019-02-22 14:11:50 -0500
commite20c64d5d72e341abf8dc3cb38d7cfec371faafc (patch)
tree96890088e4645416c058ab3504feb63c1b16d9da /handle.c
parentf3db938ded8210956d492d7c42df1793893e5cbe (diff)
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.c7
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;