comparison libpurple/protocols/bonjour/jabber.c @ 24286:fe7504f465a2

More Bonjour struct hiding fixes.
author Richard Laager <rlaager@wiktel.com>
date Thu, 30 Oct 2008 20:02:30 +0000
parents bb8aa63494e7
children 5ace6c024230 5706043db5b5 252e26edb7a9
comparison
equal deleted inserted replaced
24285:716048e4fbbd 24286:fe7504f465a2
140 140
141 static void 141 static void
142 _jabber_parse_and_write_message_to_ui(xmlnode *message_node, PurpleBuddy *pb) 142 _jabber_parse_and_write_message_to_ui(xmlnode *message_node, PurpleBuddy *pb)
143 { 143 {
144 xmlnode *body_node, *html_node, *events_node; 144 xmlnode *body_node, *html_node, *events_node;
145 PurpleConnection *gc = pb->account->gc; 145 PurpleConnection *gc = purple_account_get_connection(purple_buddy_get_account(pb));
146 gchar *body = NULL; 146 gchar *body = NULL;
147 gboolean composing_event = FALSE; 147 gboolean composing_event = FALSE;
148 148
149 body_node = xmlnode_get_child(message_node, "body"); 149 body_node = xmlnode_get_child(message_node, "body");
150 html_node = xmlnode_get_child(message_node, "html"); 150 html_node = xmlnode_get_child(message_node, "html");
223 purple_debug_error("bonjour", "No html body or regular body found.\n"); 223 purple_debug_error("bonjour", "No html body or regular body found.\n");
224 return; 224 return;
225 } 225 }
226 226
227 /* Send the message to the UI */ 227 /* Send the message to the UI */
228 serv_got_im(gc, pb->name, body, 0, time(NULL)); 228 serv_got_im(gc, purple_buddy_get_name(pb), body, 0, time(NULL));
229 229
230 g_free(body); 230 g_free(body);
231 } 231 }
232 232
233 struct _match_buddies_by_address_t { 233 struct _match_buddies_by_address_t {