changeset 17904:49fe31a64716

Fixed a bug that prevented multi-stage ad-hoc commands.
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 11 Jul 2007 02:36:42 +0000
parents 7cc4c6c73a06
children 692057170584
files libpurple/protocols/jabber/adhoccommands.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");