From: fredrik Date: Wed, 11 Apr 2007 11:14:53 +0000 (+0000) Subject: Check .connect code. X-Git-Tag: 0.3~43 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=1157d12b29dfa327967c46fa3a0ae859adaf470b Check .connect code. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@894 959494ce-11ee-0310-bf91-de5d638817bd --- 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); }