diff options
author | June McEnroe <june@causal.agency> | 2020-10-12 19:25:08 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-10-12 19:25:08 -0400 |
commit | 59006d18bb3119a3cdf6ff1494aebaf8bdc82dd9 (patch) | |
tree | 6f9a14f4d4f086c32300e91583e279ae1d056714 /chat.c | |
parent | Clear wrapping point at alignment tab (diff) | |
download | catgirl-59006d18bb3119a3cdf6ff1494aebaf8bdc82dd9.tar.gz catgirl-59006d18bb3119a3cdf6ff1494aebaf8bdc82dd9.zip |
Avoid eating C-c while connecting
Split UI initialization into two steps either side of the call to connect, so that C-c works as interrupt while it's blocked.
Diffstat (limited to '')
-rw-r--r-- | chat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chat.c b/chat.c index 6befdde..223583e 100644 --- a/chat.c +++ b/chat.c @@ -222,7 +222,7 @@ int main(int argc, char *argv[]) { ircConfig(insecure, cert, priv); - uiInit(); + uiInitEarly(); if (save) { uiLoad(save); atexit(exitSave); @@ -244,6 +244,7 @@ int main(int argc, char *argv[]) { ircFormat("NICK :%s\r\n", nick); ircFormat("USER %s 0 * :%s\r\n", user, real); + uiInitLate(); signal(SIGHUP, signalHandler); signal(SIGINT, signalHandler); signal(SIGTERM, signalHandler); |