changeset 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 86cdfd6b32a6
files src/protocols/bonjour/bonjour.c
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/bonjour/bonjour.c	Wed Oct 26 05:17:19 2005 +0000
+++ b/src/protocols/bonjour/bonjour.c	Wed Oct 26 05:20:39 2005 +0000
@@ -202,13 +202,12 @@
 	 *   -away ("dnd")
 	 * Each of them can have an optional message.
 	 */
-	if (primitive == GAIM_STATUS_AVAILABLE) {
-		bonjour_status = "avail";
-	} else if (gaim_presence_is_idle(presence)) {
-		bonjour_status = "away";
-	} else {
-		bonjour_status = "dnd";
-	}
+	if (gaim_presence_is_available(presence))
+		bd->dns_sd_data->status = g_strdup("avail");
+	else if (gaim_presence_is_idle(presence))
+		bd->dns_sd_data->status = g_strdup("away");
+	else
+		bd->dns_sd_data->status = g_strdup("dnd");
 
 	gc = gaim_account_get_connection(account);
 	bd = gc->proto_data;