$ git clone https://tcclient.ion.nu/tc_client.git
commit 7dd93037af6971057f9152634618ab906b1a1d4b
Author: Alicia <...>
Date: Fri Aug 7 16:31:41 2015 +0200
irchack: respond to pings while waiting for the captcha.
diff --git a/ChangeLog b/ChangeLog
index 0cf123a..8b0c56b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ Send account username in AMF0 "connect" command at startup regardless of whether
If an RTMP chunk already has a buffer allocated when a packet sets the length, free it and start over.
Added support for captchas.
irchack: added a check for whether tc_client is installed or should be run from the source directory (should have been added along with the 'install' target)
+irchack: respond to pings while waiting for the captcha.
tc_client-gtk and camviewer: added support for captchas.
tc_client-gtk: made the pane handles between cams, chat, and userlist wide (contributed by David Kreuter)
irchack: added support for captchas.
diff --git a/utilities/irchack/irchack.c b/utilities/irchack/irchack.c
index 932df6b..364757d 100644
--- a/utilities/irchack/irchack.c
+++ b/utilities/irchack/irchack.c
@@ -263,6 +263,10 @@ printf("Got from tc_client: '%s'\n", buf);
write(tc_in[1], "\n", 1);
break;
}
+ else if(!strncasecmp(buf, "PING ", 5))
+ {
+ dprintf(sock, ":irchack PONG %s\n", &buf[5]);
+ }
}
continue;
}