| 162 str = xmlnode_to_str(iq, NULL); |
162 str = xmlnode_to_str(iq, NULL); |
| 163 prpl = purple_connection_get_prpl(pc); |
163 prpl = purple_connection_get_prpl(pc); |
| 164 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
164 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
| 165 prpl_info->send_raw(pc, str, -1); |
165 prpl_info->send_raw(pc, str, -1); |
| 166 g_free(str); |
166 g_free(str); |
| |
167 xmlnode_free(iq); |
| |
168 g_free(id); |
| 167 } |
169 } |
| 168 |
170 |
| 169 static void |
171 static void |
| 170 xmpp_disco_items_do(PurpleConnection *pc, gpointer cbdata, const char *jid, |
172 xmpp_disco_items_do(PurpleConnection *pc, gpointer cbdata, const char *jid, |
| 171 const char *node, XmppIqCallback cb) |
173 const char *node, XmppIqCallback cb) |
| 191 str = xmlnode_to_str(iq, NULL); |
193 str = xmlnode_to_str(iq, NULL); |
| 192 prpl = purple_connection_get_prpl(pc); |
194 prpl = purple_connection_get_prpl(pc); |
| 193 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
195 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
| 194 prpl_info->send_raw(pc, str, -1); |
196 prpl_info->send_raw(pc, str, -1); |
| 195 g_free(str); |
197 g_free(str); |
| |
198 xmlnode_free(iq); |
| |
199 g_free(id); |
| 196 } |
200 } |
| 197 |
201 |
| 198 static XmppDiscoServiceType |
202 static XmppDiscoServiceType |
| 199 disco_service_type_from_identity(xmlnode *identity) |
203 disco_service_type_from_identity(xmlnode *identity) |
| 200 { |
204 { |
| 546 str = xmlnode_to_str(iq, NULL); |
550 str = xmlnode_to_str(iq, NULL); |
| 547 prpl = purple_connection_get_prpl(service->list->pc); |
551 prpl = purple_connection_get_prpl(service->list->pc); |
| 548 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
552 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
| 549 prpl_info->send_raw(service->list->pc, str, -1); |
553 prpl_info->send_raw(service->list->pc, str, -1); |
| 550 g_free(str); |
554 g_free(str); |
| |
555 xmlnode_free(iq); |
| 551 g_free(id); |
556 g_free(id); |
| 552 } |
557 } |
| 553 |
558 |
| 554 static void |
559 static void |
| 555 create_dialog(PurplePluginAction *action) |
560 create_dialog(PurplePluginAction *action) |