# HG changeset patch # User Andreas Monitzer # Date 1184121402 0 # Node ID 49fe31a647161defad8ddce60ad08e1bf2909b7e # Parent 7cc4c6c73a064938a21d583b46d98f7e36b5f27a Fixed a bug that prevented multi-stage ad-hoc commands. diff -r 7cc4c6c73a06 -r 49fe31a64716 libpurple/protocols/jabber/adhoccommands.c --- a/libpurple/protocols/jabber/adhoccommands.c Wed Jul 11 01:22:24 2007 +0000 +++ b/libpurple/protocols/jabber/adhoccommands.c Wed Jul 11 02:36:42 2007 +0000 @@ -94,12 +94,14 @@ } } +static void jabber_adhoc_parse(JabberStream *js, xmlnode *packet, gpointer data); + static void do_adhoc_action_cb(JabberStream *js, xmlnode *result, const char *actionhandle, gpointer user_data) { xmlnode *command; GList *action; JabberAdHocActionInfo *actionInfo = user_data; JabberIq *iq = jabber_iq_new(js, JABBER_IQ_SET); -/* jabber_iq_set_callback(iq, do_adhoc_parse_iq, NULL);*/ + jabber_iq_set_callback(iq, jabber_adhoc_parse, NULL); xmlnode_set_attrib(iq->node, "to", actionInfo->who); command = xmlnode_new_child(iq->node,"command");