Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    rfc630f9 re8f8b18  
    22 * gaim
    33 *
    4  * Some code copyright (C) 2002-2006, Jelmer Vernooij <jelmer@samba.org>
    5  *                                    and the BitlBee team.
    64 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
    75 * libfaim code copyright 1998, 1999 Adam Fritzler <afritz@auk.cx>
     
    358356        if (isdigit(*user->username)) {
    359357                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 */
    363359                gc->password[8] = 0;
    364360        } else {
     
    385381        if (g_strcasecmp(user->proto_opt[USEROPT_AUTH], "login.icq.com") != 0 &&
    386382            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.");
    388384        }
    389385       
     
    11211117        aim_ssi_auth_reply(od->sess, od->conn, uin, 1, "");
    11221118        // 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);
    11251120       
    11261121        g_free(uin);
     
    11531148                reason = msg + 6;
    11541149       
    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.");
     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.");
    11561151        data->gc = gc;
    11571152        data->uin = uin;
     
    17421737        odata->rights.maxdenies = (guint)maxdenies;
    17431738
     1739//      serv_finish_login(gc);
     1740
     1741        if (bud_list_cache_exists(gc))
     1742                do_import(gc, NULL);
     1743
    17441744        aim_clientready(sess, fr->conn);
    17451745
     
    20602060                                                name = g_strdup(normalize(curitem->name));
    20612061                                                gc->permit = g_slist_append(gc->permit, name);
     2062                                                build_allow_list();
    20622063                                                tmp++;
    20632064                                        }
     
    20732074                                                name = g_strdup(normalize(curitem->name));
    20742075                                                gc->deny = g_slist_append(gc->deny, name);
     2076                                                build_block_list();
    20752077                                                tmp++;
    20762078                                        }
     
    20942096        } /* End of for loop */
    20952097
     2098        if (tmp)
     2099                do_export(gc);
    20962100        aim_ssi_enable(sess, fr->conn);
    20972101       
     
    22782282                tm.tm_mday = (int)info->birthday;
    22792283                tm.tm_mon = (int)info->birthmonth-1;
    2280                 tm.tm_year = (int)info->birthyear%100;
     2284                tm.tm_year = (int)info->birthyear-1900;
    22812285                strftime(date, sizeof(date), "%Y-%m-%d", &tm);
    22822286                info_string_append(str, "\n", _("Birthday"), date);
     
    25022506        int ret;
    25032507        guint8 len = strlen(message);
    2504         guint16 flags;
    25052508        char *s;
    25062509       
     
    25112514                if (*s & 128)
    25122515                        break;
    2513        
    2514         flags = AIM_CHATFLAGS_NOREFLECT;
    2515        
     2516               
    25162517        /* Message contains high ASCII chars, time for some translation! */
    25172518        if (*s) {
     
    25202521                   If we can't, fall back to UTF16. */
    25212522                if ((ret = do_iconv("UTF-8", "ISO8859-1", message, s, len, BUF_LONG)) >= 0) {
    2522                         flags |= AIM_CHATFLAGS_ISO_8859_1;
    25232523                        len = ret;
    25242524                } else if ((ret = do_iconv("UTF-8", "UNICODEBIG", message, s, len, BUF_LONG)) >= 0) {
    2525                         flags |= AIM_CHATFLAGS_UNICODE;
    25262525                        len = ret;
    25272526                } else {
     
    25342533        }
    25352534               
    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);
    25372536               
    25382537        if (s != message) {     
Note: See TracChangeset for help on using the changeset viewer.