Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 7259:22b5b81ca7e0
[gaim-migrate @ 7836]
Correctly handle failed get info requests.
This should fix that bug that's assigned to me, and also the
problem SimGuy (and other people) have had where you need to
Get Info twice before it works.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 14 Oct 2003 04:35:46 +0000 |
parents | 0ed4d53c46f9 |
children | 1930e3d00ecd |
comparison
equal
deleted
inserted
replaced
7258:d1974612b994 | 7259:22b5b81ca7e0 |
---|---|
3011 return 1; | 3011 return 1; |
3012 } | 3012 } |
3013 | 3013 |
3014 /* | 3014 /* |
3015 * We get this error when there was an error in the locate family. This | 3015 * We get this error when there was an error in the locate family. This |
3016 * usually happens because libfaim couldn't get info for someone when it | 3016 * happens when you request info of someone who is offline. |
3017 * tried automatically. Seeing the message gets annoying... | |
3018 */ | 3017 */ |
3019 static int gaim_parse_locerr(aim_session_t *sess, aim_frame_t *fr, ...) { | 3018 static int gaim_parse_locerr(aim_session_t *sess, aim_frame_t *fr, ...) { |
3020 /* char *buf; */ | 3019 gchar *buf; |
3021 va_list ap; | 3020 va_list ap; |
3022 fu16_t reason; | 3021 fu16_t reason; |
3023 char *destn; | 3022 char *destn; |
3024 | 3023 |
3025 va_start(ap, fr); | 3024 va_start(ap, fr); |
3026 reason = (fu16_t) va_arg(ap, unsigned int); | 3025 reason = (fu16_t) va_arg(ap, unsigned int); |
3027 destn = va_arg(ap, char *); | 3026 destn = va_arg(ap, char *); |
3028 va_end(ap); | 3027 va_end(ap); |
3029 | 3028 |
3030 /* | |
3031 buf = g_strdup_printf(_("User information for %s unavailable:"), destn); | 3029 buf = g_strdup_printf(_("User information for %s unavailable:"), destn); |
3032 gaim_notify_error(sess->aux_data, NULL, buf, | 3030 gaim_notify_error(sess->aux_data, NULL, buf, |
3033 (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given.")); | 3031 (reason < msgerrreasonlen) ? _(msgerrreason[reason]) : _("No reason given.")); |
3034 g_free(buf); | 3032 g_free(buf); |
3035 */ | |
3036 | 3033 |
3037 return 1; | 3034 return 1; |
3038 } | 3035 } |
3039 | 3036 |
3040 #if 0 | 3037 #if 0 |