$ git clone http://tcclient.ion.nu/tc_client.git
commit 0c8aac25ded5649bac6b09829d7fcfe993cc5c77
Author: Alicia <...>
Date: Tue Mar 28 19:36:49 2017 +0200
Bugfix: return -1 as socket if connectto() fails.
diff --git a/ChangeLog b/ChangeLog
index f52cde2..691baf4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@ Call curl_easy_cleanup() at the end of the session to make sure cookies get writ
Adjusted tinychat account support for the latest compatibility-breaking changes.
Added workaround in the RTMP acknowledgement code for when 4 gigabytes of data has been sent and the 32bit integer rolls around to 0.
Bugfix: exit with non-zero status if connection fails.
+Bugfix: return -1 as socket if connectto() fails.
When getting site and channel from a URL, ignore anything after a slash after the channel name.
Added a /quit command.
modbot: use https instead of http and use the tcclient subdomain since some DNSes have trouble with underscores.
diff --git a/client.c b/client.c
index 631ca01..d3830b1 100644
--- a/client.c
+++ b/client.c
@@ -108,7 +108,7 @@ int connectto(const char* host, const char* port)
{
perror("Failed to connect");
freeaddrinfo(res);
- return 1;
+ return -1;
}
freeaddrinfo(res);
int i=1;