comparison mcabber/src/jab_iq.c @ 1491:3d47694b4dcc

Do not discard the command sessionid in remote command results Thanks to js for the report.
author Mikael Berthe <mikael@lilotux.net>
date Mon, 28 Apr 2008 18:54:55 +0200
parents 77afd831f8f7
children 563ba5a861ae
comparison
equal deleted inserted replaced
1490:9d5a2f45addb 1491:3d47694b4dcc
1204 if (s->name) { 1204 if (s->name) {
1205 char *status = g_strdup_printf("%s %s", s->status, 1205 char *status = g_strdup_printf("%s %s", s->status,
1206 message ? message : ""); 1206 message ? message : "");
1207 cmd_setstatus(NULL, status); 1207 cmd_setstatus(NULL, status);
1208 g_free(status); 1208 g_free(status);
1209 xmlnode_put_attrib(command, "sessionid", sessionid);
1209 xmlnode_put_attrib(command, "status", "completed"); 1210 xmlnode_put_attrib(command, "status", "completed");
1210 xmlnode_put_attrib(iq, "type", "result"); 1211 xmlnode_put_attrib(iq, "type", "result");
1211 xmlnode_insert_dataform_result_message(command, 1212 xmlnode_insert_dataform_result_message(command,
1212 "Status has been changed"); 1213 "Status has been changed");
1213 } 1214 }