X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Ftest.c;h=382e26e332d26c3db6b5ccc3442d67b77777da14;hb=1157d12b29dfa327967c46fa3a0ae859adaf470b;hp=fdc46c2f52ed0104cc75f867ee0d63b56c95bd77;hpb=bf46d8f1de407f075a8703090f6a271aaf5ebe88;p=doldaconnect.git diff --git a/clients/test.c b/clients/test.c index fdc46c2..382e26e 100644 --- a/clients/test.c +++ b/clients/test.c @@ -40,8 +40,9 @@ int main(int argc, char **argv) { if(!wcscmp(resp->cmdname, L".connect")) { - printf("Connected\n"); - dc_loginasync(NULL, 1, NULL, authcallback, NULL); + printf("Connected: %i\n", resp->code); + if(resp->code == 200) + dc_loginasync(NULL, 1, NULL, authcallback, NULL); } dc_freeresp(resp); }