pidgin/plugins/xmppconsole/xmppconsole.c

changeset 40708
53a26c29d26c
parent 40502
875489636847
child 40799
fb206d19393f
equal deleted inserted replaced
40707:f84f2b4ef0e5 40708:53a26c29d26c
250 protocol = purple_connection_get_protocol(gc); 250 protocol = purple_connection_get_protocol(gc);
251 251
252 gtk_text_buffer_get_bounds(console->entry_buffer, &start, &end); 252 gtk_text_buffer_get_bounds(console->entry_buffer, &start, &end);
253 text = gtk_text_buffer_get_text(console->entry_buffer, &start, &end, FALSE); 253 text = gtk_text_buffer_get_text(console->entry_buffer, &start, &end, FALSE);
254 254
255 if (protocol) 255 if(PURPLE_IS_PROTOCOL_SERVER(protocol)) {
256 purple_protocol_server_iface_send_raw(protocol, gc, text, strlen(text)); 256 purple_protocol_server_send_raw(PURPLE_PROTOCOL_SERVER(protocol), gc,
257 text, strlen(text));
258 }
257 259
258 g_free(text); 260 g_free(text);
259 gtk_text_buffer_set_text(console->entry_buffer, "", 0); 261 gtk_text_buffer_set_text(console->entry_buffer, "", 0);
260 262
261 return TRUE; 263 return TRUE;

mercurial