diff options
Diffstat (limited to 'bounce.c')
-rw-r--r-- | bounce.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c index 43d3ef8..ec89945 100644 --- a/bounce.c +++ b/bounce.c @@ -95,7 +95,11 @@ int main(int argc, char *argv[]) { int server = serverConnect(host, port); serverLogin(pass, auth, nick, user, real); - // TODO: Wait for successful login before listening. + while (!stateReady()) { + serverRecv(); + } + if (join) serverJoin(join); + for (size_t i = 0; i < bindLen; ++i) { int error = listen(bind[i], 1); if (error) err(EX_IOERR, "listen"); |