$ git clone http://tcclient.ion.nu/tc_client.git
commit 1fa0302e965deb8f0b52eef3425069644eb891d1
Author: Alicia <...>
Date:   Sun Jul 9 09:20:46 2017 +0200

    If joining a tinychat beta channel when the client was built without support for it (requires libwebsocket, json-c), print a warning and continue connecting on RTMP.

diff --git a/ChangeLog b/ChangeLog
index d5b1b93..8e1df94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@ Bugfix: use //IGNORE to skip characters instead of freezing if the locale can't
 Use curl's curl_easy_unescape() for from_owner notices instead of doing it ourselves (contributed by Aida)
 Added some basic support for tinychat beta (-s/--site tinychat_beta)
 Automatically use tinychat_beta for beta channels.
+If joining a tinychat beta channel when the client was built without support for it (requires libwebsocket, json-c), print a warning and continue connecting on RTMP.
 modbot: use https instead of http and use the tcclient subdomain since some DNSes have trouble with underscores.
 modbot: added an option (--no-unapproved) to not add any unapproved videos to queue (videos still get approved by mods requesting or playing them manually)
 tc_client-gtk: fixed a race-condition in the builtin video player.
diff --git a/tinychat.c b/tinychat.c
index 6015be5..63f3b9f 100644
--- a/tinychat.c
+++ b/tinychat.c
@@ -691,7 +691,11 @@ int init_tinychat(const char* chanpass, const char* username, const char* userpa
   char* res=http_get(url, 0);
   if(!strstr(res, "swfobject.getFlashPlayerVersion()"))
   { // Channel joined the beta, so use that
+#ifdef HAVE_WEBSOCKET
     return init_tinychat_beta(chanpass, username, userpass, site);
+#else
+    printf("This channel appears to have joined the tinychat beta, but this build of tc_client is missing support for the beta (requires libwebsocket and json-c)\n");
+#endif
   }
   char badchar;
   if((badchar=checknick(nickname)))