1
0
Fork 0

Accept action="next" in the ad-hoc command, to go to the next step

From http://xmpp.org/extensions/xep-0050.html#execute-multiple the default
action should be “next” (and that’s what poezio does). I’m not sure
action='execute' should even be accepted at all. But it remains for
compatibility with the old behaviour.
This commit is contained in:
louiz’ 2016-08-11 11:54:33 +02:00
parent f83354ae74
commit f9dc7d6b12
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ func execCommandAdHoc(iq *xmpp.Iq) {
}
reply.PayloadEncode(cmd)
comp.Out <- reply
} else if adHoc.Action == xmpp.ActionAdHocExecute {
} else if adHoc.Action == xmpp.ActionAdHocExecute || adHoc.Action == xmpp.ActionAdHocNext {
// Last step in the command
log.Printf("%sAd-Hoc command (Node : %s). Last step.", LogInfo, adHoc.Node)
reply := iq.Response(xmpp.IQTypeResult)