I have a problem in slow networks, irc_run returns with 1, and the examples fail.
The only solution i found is to comment the lines 766/767 of libirclient.c , but i dont know if its correct to do so.
Solution i found to the slow networks
Rodrigo Valiña Gutiérrez
I had a similar problem with slow networks (high latency), and solved it raising (at least before connecting) the timeout in irc_run from libircclient.c (lines 430/431 in version 1.8).
from 0.25 seconds:
tv.tv_usec = 250000;
tv.tv_sec = 0;
to 1 or 2 seconds:
tv.tv_usec = 0;
tv.tv_sec = 2;