X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Ftest.c;h=46bd2f7f038e3583256d92e6f7464babe90baa5d;hb=118ce98812409db434e2f87220aaf3b286e0c549;hp=e88dab4a41f73d2c69675982e1f4be9d4505851a;hpb=0b8b2b53dc801ee5cba4998471ce282338220bbf;p=doldaconnect.git diff --git a/clients/test.c b/clients/test.c index e88dab4..46bd2f7 100644 --- a/clients/test.c +++ b/clients/test.c @@ -38,10 +38,10 @@ int main(int argc, char **argv) done = 1; while((resp = dc_getresp()) != NULL) { - if(resp->cmdname == NULL) + if(!strcmp(resp->cmdname, ".connect")) { printf("Connected\n"); - dc_loginasync(NULL, 0, NULL, authcallback, NULL); + dc_loginasync(NULL, 1, NULL, authcallback, NULL); } dc_freeresp(resp); }