comparison libpurple/protocols/oscar/oscar.c @ 28868:c26a59000df9

oscar: Update the details of the buddy preferences based on the OSCAR docs.
author Paul Aurich <paul@darkrain42.org>
date Tue, 03 Nov 2009 18:07:02 +0000
parents 28d73d34d792
children 4549c3b5a0b3
comparison
equal deleted inserted replaced
28865:28d73d34d792 28868:c26a59000df9
1412 od = purple_connection_get_protocol_data(gc); 1412 od = purple_connection_get_protocol_data(gc);
1413 report_idle = strcmp((const char *)value, "none") != 0; 1413 report_idle = strcmp((const char *)value, "none") != 0;
1414 presence = aim_ssi_getpresence(od->ssi.local); 1414 presence = aim_ssi_getpresence(od->ssi.local);
1415 1415
1416 if (report_idle) 1416 if (report_idle)
1417 aim_ssi_setpresence(od, presence | 0x400); 1417 aim_ssi_setpresence(od, presence | AIM_SSI_PRESENCE_FLAG_SHOWIDLE);
1418 else 1418 else
1419 aim_ssi_setpresence(od, presence & ~0x400); 1419 aim_ssi_setpresence(od, presence & ~AIM_SSI_PRESENCE_FLAG_SHOWIDLE);
1420 } 1420 }
1421 1421
1422 /** 1422 /**
1423 * Should probably make a "Use recent buddies group" account preference 1423 * Should probably make a "Use recent buddies group" account preference
1424 * so that this option is surfaced to the user. 1424 * so that this option is surfaced to the user.
5296 5296
5297 idle_reporting_pref = purple_prefs_get_string("/purple/away/idle_reporting"); 5297 idle_reporting_pref = purple_prefs_get_string("/purple/away/idle_reporting");
5298 report_idle = strcmp(idle_reporting_pref, "none") != 0; 5298 report_idle = strcmp(idle_reporting_pref, "none") != 0;
5299 5299
5300 if (report_idle) 5300 if (report_idle)
5301 aim_ssi_setpresence(od, tmp | 0x400); 5301 aim_ssi_setpresence(od, tmp | AIM_SSI_PRESENCE_FLAG_SHOWIDLE);
5302 else 5302 else
5303 aim_ssi_setpresence(od, tmp & ~0x400); 5303 aim_ssi_setpresence(od, tmp & ~AIM_SSI_PRESENCE_FLAG_SHOWIDLE);
5304 } 5304 }
5305 5305
5306 5306
5307 } /* end pruning buddies from local list */ 5307 } /* end pruning buddies from local list */
5308 5308