aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f807cb6..c844f09 100644
--- a/src/main.c
+++ b/src/main.c
@@ -18,6 +18,7 @@
#include "edbox.h"
#include "config.h"
#include "keyclick.h"
+#include "indic8.h"
unsigned char err; // error code of last operation.
unsigned char trip = 0; // if trip == 1, fujinet is asking us for attention.
@@ -76,7 +77,9 @@ void txbuf_send(void) {
if(tx_buf[txbuflen - 1] != '\n')
tx_buf[txbuflen++] = '\n';
+ ind_net_tx();
nwrite(conf->url, tx_buf, txbuflen);
+ ind_net_idle();
txbuf_init();
}
@@ -180,6 +183,7 @@ void main(void) {
while(1) {
edbox_callback = cmd_execute;
if(fn_connect()) {
+ ind_net_idle();
irc_register();
irc_loop();
}