Changeset c2fb3809 for protocols/oscar
- Timestamp:
- 2007-04-15T22:39:35Z (18 years ago)
- Branches:
- master
- Children:
- 84b045d
- Parents:
- cd4723c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
rcd4723c rc2fb3809 263 263 aim_rxdispatch(odata->sess); 264 264 if (odata->killme) 265 imc_logout(ic );265 imc_logout(ic, TRUE); 266 266 } else { 267 267 if ((conn->type == AIM_CONN_TYPE_BOS) || 268 268 !(aim_getconn_type(odata->sess, AIM_CONN_TYPE_BOS))) { 269 269 imc_error(ic, _("Disconnected.")); 270 imc_logout(ic );270 imc_logout(ic, TRUE); 271 271 } else if (conn->type == AIM_CONN_TYPE_CHAT) { 272 272 struct chat_connection *c = find_oscar_chat_by_conn(ic, conn); … … 326 326 if (source < 0) { 327 327 imc_error(ic, _("Couldn't connect to host")); 328 imc_logout(ic );328 imc_logout(ic, TRUE); 329 329 return FALSE; 330 330 } … … 361 361 We don't do those anymore, but let's stick with it, just in case 362 362 it accidentally fixes something else too... </bitlbee> */ 363 ic->password[8] = 0; 363 /* ic->acc->pass[8] = 0; 364 Not touching this anymore now that it belongs to account_t! 365 Let's hope nothing will break. ;-) */ 364 366 } else { 365 367 ic->flags |= OPT_CONN_HTML; … … 379 381 if (conn == NULL) { 380 382 imc_error(ic, _("Unable to login to AIM")); 381 imc_logout(ic );383 imc_logout(ic, TRUE); 382 384 return; 383 385 } … … 385 387 if (acc->server == NULL) { 386 388 imc_error(ic, "No servername specified"); 387 imc_logout(ic );389 imc_logout(ic, FALSE); 388 390 return; 389 391 } … … 394 396 } 395 397 396 imc_log(ic, _("Signon: %s"), ic-> username);398 imc_log(ic, _("Signon: %s"), ic->acc->user); 397 399 398 400 aim_conn_addhandler(sess, conn, 0x0017, 0x0007, gaim_parse_login, 0); … … 403 405 if (conn->fd < 0) { 404 406 imc_error(ic, _("Couldn't connect to host")); 405 imc_logout(ic );407 imc_logout(ic, TRUE); 406 408 return; 407 409 } 408 aim_request_login(sess, conn, ic-> username);410 aim_request_login(sess, conn, ic->acc->user); 409 411 } 410 412 … … 463 465 if (source < 0) { 464 466 imc_error(ic, _("Could Not Connect")); 465 imc_logout(ic );467 imc_logout(ic, TRUE); 466 468 return FALSE; 467 469 } … … 728 730 va_end(ap); 729 731 730 aim_send_login(sess, fr->conn, ic-> username, ic->password, &info, key);732 aim_send_login(sess, fr->conn, ic->acc->user, ic->acc->pass, &info, key); 731 733 732 734 return 1; … … 1013 1015 signon = time(NULL) - info->sessionlen; 1014 1016 1015 tmp = g_strdup(normalize(ic-> username));1017 tmp = g_strdup(normalize(ic->acc->user)); 1016 1018 if (!strcmp(tmp, normalize(info->sn))) 1017 1019 g_snprintf(ic->displayname, sizeof(ic->displayname), "%s", info->sn); … … 2136 2138 switch(ic->permdeny) { 2137 2139 case 1: 2138 aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_DENYADD, ic-> username);2140 aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_DENYADD, ic->acc->user); 2139 2141 break; 2140 2142 case 2: 2141 aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_PERMITADD, ic-> username);2143 aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_PERMITADD, ic->acc->user); 2142 2144 break; 2143 2145 case 3: … … 2162 2164 break; 2163 2165 } 2164 signoff_blocked(ic);2165 2166 } else { 2166 2167 if (od->sess->ssi.received_data) … … 2584 2585 char * chatname; 2585 2586 2586 chatname = g_strdup_printf("%s%d", ic-> username, chat_id++);2587 chatname = g_strdup_printf("%s%d", ic->acc->user, chat_id++); 2587 2588 2588 2589 ret = oscar_chat_join(ic, chatname);
Note: See TracChangeset
for help on using the changeset viewer.