Ignore:
Timestamp:
2006-05-24T23:04:18Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
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.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r46ad029 r601e813  
    22 * gaim
    33 *
     4 * Some code copyright (C) 2002-2006, Jelmer Vernooij <jelmer@samba.org>
     5 *                                    and the BitlBee team.
    46 * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
    57 * libfaim code copyright 1998, 1999 Adam Fritzler <afritz@auk.cx>
     
    356358        if (isdigit(*user->username)) {
    357359                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... */
    359363                gc->password[8] = 0;
    360364        } else {
     
    381385        if (g_strcasecmp(user->proto_opt[USEROPT_AUTH], "login.icq.com") != 0 &&
    382386            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]);
    384388        }
    385389       
     
    11171121        aim_ssi_auth_reply(od->sess, od->conn, uin, 1, "");
    11181122        // 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);
    11201125       
    11211126        g_free(uin);
     
    11481153                reason = msg + 6;
    11491154       
    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.");
    11511156        data->gc = gc;
    11521157        data->uin = uin;
     
    17371742        odata->rights.maxdenies = (guint)maxdenies;
    17381743
    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();
    20632062                                                tmp++;
    20642063                                        }
     
    20742073                                                name = g_strdup(normalize(curitem->name));
    20752074                                                gc->deny = g_slist_append(gc->deny, name);
    2076                                                 build_block_list();
    20772075                                                tmp++;
    20782076                                        }
     
    20962094        } /* End of for loop */
    20972095
    2098         if (tmp)
    2099                 do_export(gc);
    21002096        aim_ssi_enable(sess, fr->conn);
    21012097       
     
    22822278                tm.tm_mday = (int)info->birthday;
    22832279                tm.tm_mon = (int)info->birthmonth-1;
    2284                 tm.tm_year = (int)info->birthyear-1900;
     2280                tm.tm_year = (int)info->birthyear%100;
    22852281                strftime(date, sizeof(date), "%Y-%m-%d", &tm);
    22862282                info_string_append(str, "\n", _("Birthday"), date);
     
    25062502        int ret;
    25072503        guint8 len = strlen(message);
     2504        guint16 flags;
    25082505        char *s;
    25092506       
     
    25142511                if (*s & 128)
    25152512                        break;
    2516                
     2513       
     2514        flags = AIM_CHATFLAGS_NOREFLECT;
     2515       
    25172516        /* Message contains high ASCII chars, time for some translation! */
    25182517        if (*s) {
     
    25212520                   If we can't, fall back to UTF16. */
    25222521                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;
    25252526                        len = ret;
    25262527                } else {
     
    25332534        }
    25342535               
    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);
    25362537               
    25372538        if (s != message) {     
Note: See TracChangeset for help on using the changeset viewer.