diff libpurple/protocols/bonjour/jabber.c @ 24344:fe7504f465a2

More Bonjour struct hiding fixes.
author Richard Laager <rlaager@wiktel.com>
date Thu, 30 Oct 2008 20:02:30 +0000
parents bb8aa63494e7
children 5706043db5b5 5ace6c024230 252e26edb7a9
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.c	Thu Oct 30 19:58:25 2008 +0000
+++ b/libpurple/protocols/bonjour/jabber.c	Thu Oct 30 20:02:30 2008 +0000
@@ -142,7 +142,7 @@
 _jabber_parse_and_write_message_to_ui(xmlnode *message_node, PurpleBuddy *pb)
 {
 	xmlnode *body_node, *html_node, *events_node;
-	PurpleConnection *gc = pb->account->gc;
+	PurpleConnection *gc = purple_account_get_connection(purple_buddy_get_account(pb));
 	gchar *body = NULL;
 	gboolean composing_event = FALSE;
 
@@ -225,7 +225,7 @@
 	}
 
 	/* Send the message to the UI */
-	serv_got_im(gc, pb->name, body, 0, time(NULL));
+	serv_got_im(gc, purple_buddy_get_name(pb), body, 0, time(NULL));
 
 	g_free(body);
 }