# HG changeset patch # User Eric Warmenhoven # Date 1007287689 0 # Node ID cdbe6e2f0ff2a7107845cbfb9be0c1097ea52fe2 # Parent e0eeda0a9ab94f77fcd26b868b0aa77bd67ddf0a [gaim-migrate @ 2846] icy cube committer: Tailor Script diff -r e0eeda0a9ab9 -r cdbe6e2f0ff2 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Sun Dec 02 08:33:13 2001 +0000 +++ b/src/protocols/oscar/oscar.c Sun Dec 02 10:08:09 2001 +0000 @@ -457,7 +457,7 @@ odata->icq = TRUE; /* this is odd but it's necessary for a proper do_import and do_export */ gc->protocol = PROTO_ICQ; - gc->checkbox = _("Send offline message"); + gc->password[9] = 0; } else { gc->protocol = PROTO_TOC; gc->flags |= OPT_CONN_HTML; @@ -2238,8 +2238,6 @@ } else { if (imflags & IM_FLAG_AWAY) { ret = aim_send_im(odata->sess, name, AIM_IMFLAGS_AWAY, message); - } else if (imflags & IM_FLAG_CHECKBOX) { - ret = aim_send_im(odata->sess, name, AIM_IMFLAGS_OFFLINE, message); } else { struct aim_sendimext_args args; GSList *h = odata->hasicons; @@ -2248,6 +2246,8 @@ struct stat st; args.flags = AIM_IMFLAGS_ACK | AIM_IMFLAGS_CUSTOMFEATURES; + if (odata->icq) + args.flags |= AIM_IMFLAGS_OFFLINE; args.features = gaim_features; args.featureslen = sizeof(gaim_features); @@ -2738,6 +2738,7 @@ GList *m = NULL; struct proto_buddy_menu *pbm; char *n = g_strdup(normalize(gc->username)); + struct oscar_data *odata = gc->proto_data; pbm = g_new0(struct proto_buddy_menu, 1); pbm->label = _("Get Info"); @@ -2745,18 +2746,20 @@ pbm->gc = gc; m = g_list_append(m, pbm); - pbm = g_new0(struct proto_buddy_menu, 1); - pbm->label = _("Get Away Msg"); - pbm->callback = oscar_get_away_msg; - pbm->gc = gc; - m = g_list_append(m, pbm); - - if (strcmp(n, normalize(who))) { + if (!odata->icq) { pbm = g_new0(struct proto_buddy_menu, 1); - pbm->label = _("Direct IM"); - pbm->callback = oscar_ask_direct_im; + pbm->label = _("Get Away Msg"); + pbm->callback = oscar_get_away_msg; pbm->gc = gc; m = g_list_append(m, pbm); + + if (strcmp(n, normalize(who))) { + pbm = g_new0(struct proto_buddy_menu, 1); + pbm->label = _("Direct IM"); + pbm->callback = oscar_ask_direct_im; + pbm->gc = gc; + m = g_list_append(m, pbm); + } } g_free(n);