diff src/protocols/jabber/buddy.c @ 9944:e4a27c9aec4c

[gaim-migrate @ 10838] with much rejoicing, and massive thanks to the efforts of Christian, and all who have helped him, I present to you the incomplete status rewrite! committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 03 Sep 2004 21:35:52 +0000
parents 62eb9fe24692
children a9fb4493ae22
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c	Fri Sep 03 21:21:25 2004 +0000
+++ b/src/protocols/jabber/buddy.c	Fri Sep 03 21:35:52 2004 +0000
@@ -818,10 +818,17 @@
 static void jabber_buddy_set_invisibility(JabberStream *js, const char *who,
 		gboolean invisible)
 {
+	GaimPresence *gpresence;
+	GaimAccount *account;
+	GaimStatus *status;
 	JabberBuddy *jb = jabber_buddy_find(js, who, TRUE);
 	xmlnode *presence;
 
-	presence = jabber_presence_create(js->gc->away_state, js->gc->away);
+	account   = gaim_connection_get_account(js->gc);
+	gpresence = gaim_account_get_presence(account);
+	status    = gaim_presence_get_active_status(gpresence);
+
+	presence = jabber_presence_create(status);
 	xmlnode_set_attrib(presence, "to", who);
 	if(invisible) {
 		xmlnode_set_attrib(presence, "type", "invisible");