$ git clone http://tcclient.ion.nu/tc_client.git
commit a0431d61e679adc2269fe49cc1d9fd84ffb224e2
Author: Alicia <...>
Date: Thu Dec 8 14:21:25 2016 +0100
Notify if the captcha was not completed and tinychat puts our session in "lurker" mode.
diff --git a/ChangeLog b/ChangeLog
index 3e3a9e0..4fca712 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ Added a /disablesnapshots command to disable capturing outgoing cams for the fla
Fixes for compiling in a separate directory.
Buildsystem fixes.
More fixes for compiling in a separate directory.
+Notify if the captcha was not completed and tinychat puts our session in "lurker" mode.
tc_client-gtk: bugfix: don't rely on stack allocated variables for GUI callbacks.
tc_client-gtk: install the camera placeholder animation for the 'install' target.
tc_client-gtk: mark outgoing video keyframes as keyframes.
diff --git a/client.c b/client.c
index b8ac3e1..1aaa609 100644
--- a/client.c
+++ b/client.c
@@ -150,6 +150,10 @@ char* getcookie(const char* channel)
char url[strlen("http://tinychat.com/cauth?t=&room=0")+snprintf(0,0, "%llu", now)+strlen(channel)];
sprintf(url, "http://tinychat.com/cauth?t=%llu&room=%s", now, channel);
char* response=http_get(url, 0);
+ if(strstr(response, "\"lurker\":1"))
+ {
+ printf("Captcha not completed, you will not be able to send any messages or broadcast\n");
+ }
char* cookie=strstr(response, "\"cookie\":\"");
if(!cookie){return 0;}