comparison src/protocols/bonjour/bonjour.c @ 11835:36c2e09c2cf9

[gaim-migrate @ 14126] I feel like idle wouldn't work correctly in Bonjour before this change. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 26 Oct 2005 05:20:39 +0000
parents 825d3ca6ffcd
children fa742ad8068c
comparison
equal deleted inserted replaced
11834:825d3ca6ffcd 11835:36c2e09c2cf9
200 * -available ("avail") 200 * -available ("avail")
201 * -idle ("away") 201 * -idle ("away")
202 * -away ("dnd") 202 * -away ("dnd")
203 * Each of them can have an optional message. 203 * Each of them can have an optional message.
204 */ 204 */
205 if (primitive == GAIM_STATUS_AVAILABLE) { 205 if (gaim_presence_is_available(presence))
206 bonjour_status = "avail"; 206 bd->dns_sd_data->status = g_strdup("avail");
207 } else if (gaim_presence_is_idle(presence)) { 207 else if (gaim_presence_is_idle(presence))
208 bonjour_status = "away"; 208 bd->dns_sd_data->status = g_strdup("away");
209 } else { 209 else
210 bonjour_status = "dnd"; 210 bd->dns_sd_data->status = g_strdup("dnd");
211 }
212 211
213 gc = gaim_account_get_connection(account); 212 gc = gaim_account_get_connection(account);
214 bd = gc->proto_data; 213 bd = gc->proto_data;
215 bonjour_dns_sd_send_status(bd->dns_sd_data, bonjour_status, message); 214 bonjour_dns_sd_send_status(bd->dns_sd_data, bonjour_status, message);
216 } 215 }