diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-11-17 21:48:49 +0800 | 
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-11-17 21:48:49 +0800 | 
| commit | 61ebb77a2919911d01ded1885db5473f59d45e7f (patch) | |
| tree | 857f110460b2e151eabd9a312ee84183b4c0890a | |
| parent | 7f6145fe91d5b4ccdd2036d739a2bf456b789ede (diff) | |
| -rw-r--r-- | dircpsa.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| @@ -68,8 +68,13 @@ int main (int argc, char *argv[])  	}  	if (irc_run(session)) { -		printf("Could not connect or I/O error: %s\n", irc_strerror(irc_errno(session))); -		return 1; +		int errno = irc_errno(session); +		if (errno == LIBIRC_ERR_TERMINATED) +			return 0; +		else { +			printf("Could not connect or I/O error: %s\n", irc_strerror(errno)); +			return 1; +		}  	}  	return 0; |