Mercurial > pidgin
comparison libpurple/protocols/oscar/userinfo.c @ 30362:879baaf87aa2
Added an error handler for family_icq.c. So far it works for
icq fullinfo and alias requests.
This was originally motivated by me getting "Server rate limit exceeded"
while testing authorization requests. This error completely prevented
the authorization request dialog from showing up.
author | ivan.komarov@soc.pidgin.im |
---|---|
date | Sun, 30 May 2010 19:01:30 +0000 |
parents | 9881f18b95b1 |
children | a347a4cd1caf |
comparison
equal
deleted
inserted
replaced
30361:9881f18b95b1 | 30362:879baaf87aa2 |
---|---|
367 } | 367 } |
368 } | 368 } |
369 } | 369 } |
370 | 370 |
371 void | 371 void |
372 oscar_user_info_display_error(OscarData *od, guint16 error_reason, char *buddy) | 372 oscar_user_info_display_error(OscarData *od, guint16 error_reason, gchar *buddy) |
373 { | 373 { |
374 PurpleNotifyUserInfo *user_info = purple_notify_user_info_new(); | 374 PurpleNotifyUserInfo *user_info = purple_notify_user_info_new(); |
375 gchar *buf = g_strdup_printf(_("User information not available: %s"), oscar_get_msgerr_reason(error_reason)); | 375 gchar *buf = g_strdup_printf(_("User information not available: %s"), oscar_get_msgerr_reason(error_reason)); |
376 purple_notify_user_info_add_pair(user_info, NULL, buf); | 376 purple_notify_user_info_add_pair(user_info, NULL, buf); |
377 purple_notify_userinfo(od->gc, buddy, user_info, NULL, NULL); | 377 purple_notify_userinfo(od->gc, buddy, user_info, NULL, NULL); |
393 gchar *buf; | 393 gchar *buf; |
394 const gchar *alias; | 394 const gchar *alias; |
395 | 395 |
396 if (!info->uin) | 396 if (!info->uin) |
397 return; | 397 return; |
398 | 398 |
399 user_info = purple_notify_user_info_new(); | 399 user_info = purple_notify_user_info_new(); |
400 | 400 |
401 g_snprintf(who, sizeof(who), "%u", info->uin); | 401 g_snprintf(who, sizeof(who), "%u", info->uin); |
402 buddy = purple_find_buddy(account, who); | 402 buddy = purple_find_buddy(account, who); |
403 if (buddy != NULL) | 403 if (buddy != NULL) |