diff options
author | June McEnroe <june@causal.agency> | 2021-07-13 15:39:16 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-07-13 15:39:16 -0400 |
commit | ce53e309e6f16bdbab11ff3088199b7d65533470 (patch) | |
tree | 5b08cd26e6d64b33672665c71ba188621b30761c | |
parent | Perform TLS handshake after final pledge (diff) | |
download | catgirl-ce53e309e6f16bdbab11ff3088199b7d65533470.tar.gz catgirl-ce53e309e6f16bdbab11ff3088199b7d65533470.zip |
Move all UI initialization together
Diffstat (limited to '')
-rw-r--r-- | chat.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/chat.c b/chat.c index 058950f..0756450 100644 --- a/chat.c +++ b/chat.c @@ -280,6 +280,15 @@ int main(int argc, char *argv[]) { uiLoad(save); atexit(exitSave); } + uiShowID(Network); + uiFormat( + Network, Cold, NULL, + "\3%dcatgirl\3\tis GPLv3 fwee softwawe ^w^ " + "code is avaiwable fwom https://git.causal.agency/catgirl", + Pink + ); + uiFormat(Network, Cold, NULL, "Traveling..."); + uiDraw(); #ifdef __OpenBSD__ char promises[64] = "stdio tty"; @@ -303,16 +312,6 @@ int main(int argc, char *argv[]) { int error = pledge(promises, NULL); if (error) err(EX_OSERR, "pledge"); #endif - - uiShowID(Network); - uiFormat( - Network, Cold, NULL, - "\3%dcatgirl\3\tis GPLv3 fwee softwawe ^w^ " - "code is avaiwable fwom https://git.causal.agency/catgirl", - Pink - ); - uiFormat(Network, Cold, NULL, "Traveling..."); - uiDraw(); int irc = ircConnect(bind, host, port); |