Changeset 601e813 for protocols/oscar/oscar.c
- Timestamp:
- 2006-05-24T23:04:18Z (19 years ago)
- Branches:
- master
- Children:
- 80c1e4d
- Parents:
- 46ad029 (diff), fc630f9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r46ad029 r601e813 2 2 * gaim 3 3 * 4 * Some code copyright (C) 2002-2006, Jelmer Vernooij <jelmer@samba.org> 5 * and the BitlBee team. 4 6 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net> 5 7 * libfaim code copyright 1998, 1999 Adam Fritzler <afritz@auk.cx> … … 356 358 if (isdigit(*user->username)) { 357 359 odata->icq = TRUE; 358 /* this is odd but it's necessary for a proper do_import and do_export */ 360 /* This is odd but it's necessary for a proper do_import and do_export. 361 We don't do those anymore, but let's stick with it, just in case 362 it accidentally fixes something else too... */ 359 363 gc->password[8] = 0; 360 364 } else { … … 381 385 if (g_strcasecmp(user->proto_opt[USEROPT_AUTH], "login.icq.com") != 0 && 382 386 g_strcasecmp(user->proto_opt[USEROPT_AUTH], "login.oscar.aol.com") != 0) { 383 serv_got_crap(gc, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails." );387 serv_got_crap(gc, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails.",user->proto_opt[USEROPT_AUTH]); 384 388 } 385 389 … … 1117 1121 aim_ssi_auth_reply(od->sess, od->conn, uin, 1, ""); 1118 1122 // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message); 1119 show_got_added(data->gc, NULL, uin, NULL, NULL); 1123 if(find_buddy(data->gc, uin) == NULL) 1124 show_got_added(data->gc, uin, NULL); 1120 1125 1121 1126 g_free(uin); … … 1148 1153 reason = msg + 6; 1149 1154 1150 dialog_msg = g_strdup_printf("The user %u wants to add you to their buddy list for the following reason: \n\n%s", uin, reason ? reason : "No reason given.");1155 dialog_msg = g_strdup_printf("The user %u wants to add you to their buddy list for the following reason: %s", uin, reason ? reason : "No reason given."); 1151 1156 data->gc = gc; 1152 1157 data->uin = uin; … … 1737 1742 odata->rights.maxdenies = (guint)maxdenies; 1738 1743 1739 // serv_finish_login(gc);1740 1741 if (bud_list_cache_exists(gc))1742 do_import(gc, NULL);1743 1744 1744 aim_clientready(sess, fr->conn); 1745 1745 … … 2060 2060 name = g_strdup(normalize(curitem->name)); 2061 2061 gc->permit = g_slist_append(gc->permit, name); 2062 build_allow_list();2063 2062 tmp++; 2064 2063 } … … 2074 2073 name = g_strdup(normalize(curitem->name)); 2075 2074 gc->deny = g_slist_append(gc->deny, name); 2076 build_block_list();2077 2075 tmp++; 2078 2076 } … … 2096 2094 } /* End of for loop */ 2097 2095 2098 if (tmp)2099 do_export(gc);2100 2096 aim_ssi_enable(sess, fr->conn); 2101 2097 … … 2282 2278 tm.tm_mday = (int)info->birthday; 2283 2279 tm.tm_mon = (int)info->birthmonth-1; 2284 tm.tm_year = (int)info->birthyear -1900;2280 tm.tm_year = (int)info->birthyear%100; 2285 2281 strftime(date, sizeof(date), "%Y-%m-%d", &tm); 2286 2282 info_string_append(str, "\n", _("Birthday"), date); … … 2506 2502 int ret; 2507 2503 guint8 len = strlen(message); 2504 guint16 flags; 2508 2505 char *s; 2509 2506 … … 2514 2511 if (*s & 128) 2515 2512 break; 2516 2513 2514 flags = AIM_CHATFLAGS_NOREFLECT; 2515 2517 2516 /* Message contains high ASCII chars, time for some translation! */ 2518 2517 if (*s) { … … 2521 2520 If we can't, fall back to UTF16. */ 2522 2521 if ((ret = do_iconv("UTF-8", "ISO8859-1", message, s, len, BUF_LONG)) >= 0) { 2522 flags |= AIM_CHATFLAGS_ISO_8859_1; 2523 2523 len = ret; 2524 2524 } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) { 2525 flags |= AIM_CHATFLAGS_UNICODE; 2525 2526 len = ret; 2526 2527 } else { … … 2533 2534 } 2534 2535 2535 ret = aim_chat_send_im(od->sess, ccon->conn, AIM_CHATFLAGS_NOREFLECT, s, len);2536 ret = aim_chat_send_im(od->sess, ccon->conn, flags, s, len); 2536 2537 2537 2538 if (s != message) {
Note: See TracChangeset
for help on using the changeset viewer.