comparison src/protocols/oscar/oscar.c @ 5197:f2cd55078be3

[gaim-migrate @ 5563] I'm going to get my hair cut tomorrow. I have a reason committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 23 Apr 2003 05:19:46 +0000
parents d9073c83a8a0
children fefad67de2c7
comparison
equal deleted inserted replaced
5196:0dc7e59bb809 5197:f2cd55078be3
2902 do_error_dialog(buf, (reason < msgerrreasonlen) ? gettext(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR); 2902 do_error_dialog(buf, (reason < msgerrreasonlen) ? gettext(msgerrreason[reason]) : _("No reason given."), GAIM_ERROR);
2903 2903
2904 return 1; 2904 return 1;
2905 } 2905 }
2906 2906
2907 /* CCC */
2908 static char *images(int flags) { 2907 static char *images(int flags) {
2909 static char buf[1024]; 2908 static char buf[1024];
2910 g_snprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s", 2909 g_snprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s",
2911 (flags & AIM_FLAG_ACTIVEBUDDY) ? "<IMG SRC=\"ab_icon.gif\">" : "", 2910 (flags & AIM_FLAG_ACTIVEBUDDY) ? "<IMG SRC=\"ab_icon.gif\">" : "",
2912 (flags & AIM_FLAG_UNCONFIRMED) ? "<IMG SRC=\"dt_icon.gif\">" : "", 2911 (flags & AIM_FLAG_UNCONFIRMED) ? "<IMG SRC=\"dt_icon.gif\">" : "",
3076 (utf8 && *utf8) ? away_subs(utf8, gc->username) : 3075 (utf8 && *utf8) ? away_subs(utf8, gc->username) :
3077 _("<i>User has no away message</i>"), NULL); 3076 _("<i>User has no away message</i>"), NULL);
3078 } else { 3077 } else {
3079 g_show_info_text(gc, info->sn, 0, 3078 g_show_info_text(gc, info->sn, 0,
3080 header, 3079 header,
3081 (utf8 && *utf8) ? _("<b>Away Message:</b><br>") : NULL,
3082 (utf8 && *utf8) ? away_subs(utf8, gc->username) : NULL, 3080 (utf8 && *utf8) ? away_subs(utf8, gc->username) : NULL,
3083 (utf8 && *utf8) ? "<hr>" : NULL, 3081 (utf8 && *utf8) ? "<hr>" : NULL,
3084 NULL); 3082 NULL);
3085 } 3083 }
3086 } else if (infotype == AIM_GETINFO_CAPABILITIES) { 3084 } else if (infotype == AIM_GETINFO_CAPABILITIES) {
3090 caps_string(info->capabilities), 3088 caps_string(info->capabilities),
3091 "</i>", 3089 "</i>",
3092 NULL); 3090 NULL);
3093 } else { 3091 } else {
3094 g_show_info_text(gc, info->sn, 1, 3092 g_show_info_text(gc, info->sn, 1,
3095 (utf8 && *utf8) ? _("<b>Profile:</b><br>") : _("<i>No Information Provided</i>"), 3093 (utf8 && *utf8) ? away_subs(utf8, gc->username) : _("<i>No Information Provided</i>"),
3096 (utf8 && *utf8) ? away_subs(utf8, gc->username) : NULL,
3097 NULL); 3094 NULL);
3098 } 3095 }
3099 3096
3100 g_free(utf8); 3097 g_free(utf8);
3101 3098
4790 } break; 4787 } break;
4791 4788
4792 case 0x000c: { /* you are over the limit, the cheat is to the limit, come on fhqwhgads */ 4789 case 0x000c: { /* you are over the limit, the cheat is to the limit, come on fhqwhgads */
4793 gchar *buf; 4790 gchar *buf;
4794 buf = g_strdup_printf(_("Could not add the buddy %s because you have too many buddies in your buddy list. Please remove one and try again."), (retval->name ? retval->name : _("(no name)"))); 4791 buf = g_strdup_printf(_("Could not add the buddy %s because you have too many buddies in your buddy list. Please remove one and try again."), (retval->name ? retval->name : _("(no name)")));
4795 /* do_error_dialog(_("Unable To Add"), buf, GAIM_ERROR); */ 4792 do_error_dialog(_("Unable To Add"), buf, GAIM_ERROR);
4796 g_free(buf); 4793 g_free(buf);
4797 } 4794 }
4798 4795
4799 case 0x000e: { /* contact requires authorization */ 4796 case 0x000e: { /* contact requires authorization */
4800 if ((retval->action == AIM_CB_SSI_ADD) && (retval->name)) 4797 if ((retval->action == AIM_CB_SSI_ADD) && (retval->name))
4801 gaim_auth_sendrequest(gc, retval->name); 4798 gaim_auth_sendrequest(gc, retval->name);
4802 } break; 4799 } break;
4803 4800
4804 default: { /* La la la */ 4801 default: { /* La la la */
4802 gchar *buf;
4805 debug_printf("ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n", retval->action, retval->ack); 4803 debug_printf("ssi: Action 0x%04hx was unsuccessful with error 0x%04hx\n", retval->action, retval->ack);
4806 /* Should remove buddy from local list and give an error message? */ 4804 buf = g_strdup_printf(_("Could not add the buddy %s for an unknown reason."), (retval->name ? retval->name : _("(no name)")));
4805 do_error_dialog(_("Unable To Add"), buf, GAIM_ERROR);
4806 g_free(buf);
4807 /* Should remove buddy from local list? */
4807 } break; 4808 } break;
4808 } 4809 }
4809 4810
4810 retval = retval->next; 4811 retval = retval->next;
4811 } 4812 }
5574 pbm->gc = gc; 5575 pbm->gc = gc;
5575 m = g_list_append(m, pbm); 5576 m = g_list_append(m, pbm);
5576 #endif 5577 #endif
5577 } 5578 }
5578 } 5579 }
5579 5580
5580 if (od->sess->ssi.received_data) { 5581 if (od->sess->ssi.received_data) {
5581 char *gname = aim_ssi_itemlist_findparentname(od->sess->ssi.local, who); 5582 char *gname = aim_ssi_itemlist_findparentname(od->sess->ssi.local, who);
5582 if (gname && aim_ssi_waitingforauth(od->sess->ssi.local, gname, who)) { 5583 if (gname && aim_ssi_waitingforauth(od->sess->ssi.local, gname, who)) {
5583 pbm = g_new0(struct proto_buddy_menu, 1); 5584 pbm = g_new0(struct proto_buddy_menu, 1);
5584 pbm->label = _("Re-request Authorization"); 5585 pbm->label = _("Re-request Authorization");