changeset 9559:92adc34d45da

[gaim-migrate @ 10395] nosmilot fixed this, but I rewrote his patch to be more cryptic committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 18 Jul 2004 20:32:51 +0000
parents f1137cf462d8
children 787babfc171e
files src/protocols/jabber/presence.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c	Sun Jul 18 18:47:20 2004 +0000
+++ b/src/protocols/jabber/presence.c	Sun Jul 18 20:32:51 2004 +0000
@@ -72,7 +72,9 @@
 			}
 			jabber_buddy_track_resource(jb, js->user->resource, 0, state, (msg && *msg) ? msg : NULL);
 			if((jbr = jabber_buddy_find_resource(jb, NULL)))
-				serv_got_update(js->gc, my_base_jid, 1, 0, 0, 0, jbr->state);
+				serv_got_update(js->gc, my_base_jid,
+						away_state ? !strcmp(away_state, "unavailable") : 1,
+						0, 0, 0, jbr->state);
 		}
 	}
 	g_free(my_base_jid);