$ git clone http://tcclient.ion.nu/tc_client.git
commit 2bb20ece3fd6eb184dacdc18a5abb7a3d9104f4c
Author: Alicia <...>
Date: Thu Jan 19 12:22:12 2017 +0100
Fixed tinychat account support.
diff --git a/ChangeLog b/ChangeLog
index 38031b7..2062eda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ Added some basic support for kageshi (using the -s/--site option)
Small bugfix regarding outgoing streams.
Cleaned up no-longer-needed headers in client.c
Don't bother trying to verify certificates on windows (lacking a ca bundle)
+Fixed tinychat account support.
0.41.1:
Use tinychat.com instead of apl.tinychat.com (works around SSL/TLS issues on windows)
0.41:
diff --git a/tinychat.c b/tinychat.c
index 7ea0f29..529e9b3 100644
--- a/tinychat.c
+++ b/tinychat.c
@@ -1,6 +1,6 @@
/*
tc_client, a simple non-flash client for tinychat(.com)
- Copyright (C) 2014-2016 alicia@ion.nu
+ Copyright (C) 2014-2017 alicia@ion.nu
Copyright (C) 2014-2015 Jade Lea
This program is free software: you can redistribute it and/or modify
@@ -166,9 +166,9 @@ static char* getmodkey(const char* user, const char* pass, const char* channel,
{
// TODO: if possible, do this in a neater way than digging the key out from an HTML page.
if(!user||!pass){return 0;}
- char post[strlen("form_sent=1&username=&password=&next=http://tinychat.com/0")+strlen(user)+strlen(pass)+strlen(channel)];
- sprintf(post, "form_sent=1&username=%s&password=%s&next=http://tinychat.com/%s", user, pass, channel);
- char* response=http_get("http://tinychat.com/login", post);
+ char post[strlen("form_sent=1&referer=&username=&password=&next=http://tinychat.com/0")+strlen(user)+strlen(pass)+strlen(channel)];
+ sprintf(post, "form_sent=1&referer=&username=%s&password=%s&next=http://tinychat.com/%s", user, pass, channel);
+ char* response=http_get("https://tinychat.com/login", post);
char* key=strstr(response, "autoop: \"");
if(key)
{