Changes in protocols/oscar/oscar.c [fc630f9:e8f8b18]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
rfc630f9 re8f8b18 2 2 * gaim 3 3 * 4 * Some code copyright (C) 2002-2006, Jelmer Vernooij <jelmer@samba.org>5 * and the BitlBee team.6 4 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net> 7 5 * libfaim code copyright 1998, 1999 Adam Fritzler <afritz@auk.cx> … … 358 356 if (isdigit(*user->username)) { 359 357 odata->icq = TRUE; 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... */ 358 /* this is odd but it's necessary for a proper do_import and do_export */ 363 359 gc->password[8] = 0; 364 360 } else { … … 385 381 if (g_strcasecmp(user->proto_opt[USEROPT_AUTH], "login.icq.com") != 0 && 386 382 g_strcasecmp(user->proto_opt[USEROPT_AUTH], "login.oscar.aol.com") != 0) { 387 serv_got_crap(gc, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails." ,user->proto_opt[USEROPT_AUTH]);383 serv_got_crap(gc, "Warning: Unknown OSCAR server: `%s'. Please review your configuration if the connection fails."); 388 384 } 389 385 … … 1121 1117 aim_ssi_auth_reply(od->sess, od->conn, uin, 1, ""); 1122 1118 // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message); 1123 if(find_buddy(data->gc, uin) == NULL) 1124 show_got_added(data->gc, uin, NULL); 1119 show_got_added(data->gc, NULL, uin, NULL, NULL); 1125 1120 1126 1121 g_free(uin); … … 1153 1148 reason = msg + 6; 1154 1149 1155 dialog_msg = g_strdup_printf("The user %u wants to add you to their buddy list for the following reason: 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."); 1156 1151 data->gc = gc; 1157 1152 data->uin = uin; … … 1742 1737 odata->rights.maxdenies = (guint)maxdenies; 1743 1738 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(); 2062 2063 tmp++; 2063 2064 } … … 2073 2074 name = g_strdup(normalize(curitem->name)); 2074 2075 gc->deny = g_slist_append(gc->deny, name); 2076 build_block_list(); 2075 2077 tmp++; 2076 2078 } … … 2094 2096 } /* End of for loop */ 2095 2097 2098 if (tmp) 2099 do_export(gc); 2096 2100 aim_ssi_enable(sess, fr->conn); 2097 2101 … … 2278 2282 tm.tm_mday = (int)info->birthday; 2279 2283 tm.tm_mon = (int)info->birthmonth-1; 2280 tm.tm_year = (int)info->birthyear %100;2284 tm.tm_year = (int)info->birthyear-1900; 2281 2285 strftime(date, sizeof(date), "%Y-%m-%d", &tm); 2282 2286 info_string_append(str, "\n", _("Birthday"), date); … … 2502 2506 int ret; 2503 2507 guint8 len = strlen(message); 2504 guint16 flags;2505 2508 char *s; 2506 2509 … … 2511 2514 if (*s & 128) 2512 2515 break; 2513 2514 flags = AIM_CHATFLAGS_NOREFLECT; 2515 2516 2516 2517 /* Message contains high ASCII chars, time for some translation! */ 2517 2518 if (*s) { … … 2520 2521 If we can't, fall back to UTF16. */ 2521 2522 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;2526 2525 len = ret; 2527 2526 } else { … … 2534 2533 } 2535 2534 2536 ret = aim_chat_send_im(od->sess, ccon->conn, flags, s, len);2535 ret = aim_chat_send_im(od->sess, ccon->conn, AIM_CHATFLAGS_NOREFLECT, s, len); 2537 2536 2538 2537 if (s != message) {
Note: See TracChangeset
for help on using the changeset viewer.