int main(int argc, char **argv)
{
- int i;
struct pollfd pfd;
int fd, done;
struct dc_response *resp;
- struct dc_intresp *ires;
dc_init();
fd = dc_connect(NULL);
if(!wcscmp(resp->cmdname, L".connect"))
{
printf("Connected: %i\n", resp->code);
- if(resp->code == 200)
+ if(resp->code == 201)
dc_loginasync(NULL, 1, NULL, authcallback, NULL);
}
dc_freeresp(resp);