Changeset 3759849 for protocols/oscar


Ignore:
Timestamp:
2010-06-03T22:08:23Z (15 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
eb6df6a
Parents:
1dd3470 (diff), 3dc6d86 (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 in bitlbee head

Location:
protocols/oscar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/auth.c

    r1dd3470 r3759849  
    120120        aim_snacid_t snacid;
    121121        aim_tlvlist_t *tl = NULL;
     122        struct im_connection *ic = sess->aux_data;
    122123       
    123124        if (!sess || !conn || !sn)
    124125                return -EINVAL;
    125126
    126         if ((sn[0] >= '0') && (sn[0] <= '9'))
     127        if (isdigit(sn[0]) && set_getbool(&ic->acc->set, "old_icq_auth"))
    127128                return goddamnicq(sess, conn, sn);
    128129
  • protocols/oscar/oscar.c

    r1dd3470 r3759849  
    374374        if (isdigit(acc->user[0])) {
    375375                set_add(&acc->set, "ignore_auth_requests", "false", set_eval_bool, acc);
     376                set_add(&acc->set, "old_icq_auth", "false", set_eval_bool, acc);
    376377        }
    377378       
     
    10301031                m = g_list_append(m, exch);
    10311032
    1032                 g_snprintf( txt, 1024, "Got an invitation to chatroom %s from %s: %s", name, userinfo->sn, args->msg );
     1033                g_snprintf(txt, 1024, "Got an invitation to chatroom %s from %s: %s", name, userinfo->sn, args->msg);
    10331034
    10341035                inv->ic = ic;
     
    10361037                inv->name = g_strdup(name);
    10371038               
    1038                 imcb_ask( ic, txt, inv, oscar_accept_chat, oscar_reject_chat);
     1039                imcb_ask(ic, txt, inv, oscar_accept_chat, oscar_reject_chat);
    10391040       
    10401041                if (name)
    10411042                        g_free(name);
     1043        } else if (args->reqclass & AIM_CAPS_ICQRTF) {
     1044                // TODO: constify
     1045                char text[strlen(args->info.rtfmsg.rtfmsg)+1];
     1046                strncpy(text, args->info.rtfmsg.rtfmsg, sizeof(text));
     1047                imcb_buddy_msg(ic, normalize(userinfo->sn), text, 0, 0);
    10421048        }
    10431049
Note: See TracChangeset for help on using the changeset viewer.