Changeset 3759849 for protocols/oscar
- Timestamp:
- 2010-06-03T22:08:23Z (15 years ago)
- 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. - Location:
- protocols/oscar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/auth.c
r1dd3470 r3759849 120 120 aim_snacid_t snacid; 121 121 aim_tlvlist_t *tl = NULL; 122 struct im_connection *ic = sess->aux_data; 122 123 123 124 if (!sess || !conn || !sn) 124 125 return -EINVAL; 125 126 126 if ( (sn[0] >= '0') && (sn[0] <= '9'))127 if (isdigit(sn[0]) && set_getbool(&ic->acc->set, "old_icq_auth")) 127 128 return goddamnicq(sess, conn, sn); 128 129 -
protocols/oscar/oscar.c
r1dd3470 r3759849 374 374 if (isdigit(acc->user[0])) { 375 375 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); 376 377 } 377 378 … … 1030 1031 m = g_list_append(m, exch); 1031 1032 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); 1033 1034 1034 1035 inv->ic = ic; … … 1036 1037 inv->name = g_strdup(name); 1037 1038 1038 imcb_ask( 1039 imcb_ask(ic, txt, inv, oscar_accept_chat, oscar_reject_chat); 1039 1040 1040 1041 if (name) 1041 1042 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); 1042 1048 } 1043 1049
Note: See TracChangeset
for help on using the changeset viewer.