comparison libpurple/protocols/oscar/oscar.c @ 25916:d5379aad12d0

Backport the buddy list error for ICQ/AIM, since the servers seem to be having problems on a regular basis. *** Plucked rev e1b1e80d999e393a80f201a484ef61289c258fbe (markdoliner@pidgin.im): Only show the oscar error \"we couldn't fetch your buddy list, but don't worry it will probably show up in a few minutes\" once. Thanks to rtaft for the patch. Fixes #4845.
author Paul Aurich <paul@darkrain42.org>
date Sat, 20 Jun 2009 00:26:06 +0000
parents 2260e5b0ca91
children 01f1929d0936
comparison
equal deleted inserted replaced
25915:e88a127bfa6d 25916:d5379aad12d0
5027 va_end(ap); 5027 va_end(ap);
5028 5028
5029 purple_debug_error("oscar", "ssi: SNAC error %hu\n", reason); 5029 purple_debug_error("oscar", "ssi: SNAC error %hu\n", reason);
5030 5030
5031 if (reason == 0x0005) { 5031 if (reason == 0x0005) {
5032 purple_notify_error(gc, NULL, _("Unable to Retrieve Buddy List"),
5033 _("The AIM servers were temporarily unable to send your buddy list. Your buddy list is not lost, and will probably become available in a few minutes."));
5034 if (od->getblisttimer > 0) 5032 if (od->getblisttimer > 0)
5035 purple_timeout_remove(od->getblisttimer); 5033 purple_timeout_remove(od->getblisttimer);
5036 od->getblisttimer = purple_timeout_add_seconds(30, purple_ssi_rerequestdata, od); 5034 else
5035 /* We only show this error the first time it happens */
5036 purple_notify_error(gc, NULL,
5037 _("Unable to Retrieve Buddy List"),
5038 _("The AIM servers were temporarily unable to send "
5039 "your buddy list. Your buddy list is not lost, and "
5040 "will probably become available in a few minutes."));
5041 od->getblisttimer = purple_timeout_add(30000, purple_ssi_rerequestdata, od);
5037 return 1; 5042 return 1;
5038 } 5043 }
5039 5044
5040 oscar_set_extendedstatus(gc); 5045 oscar_set_extendedstatus(gc);
5041 5046