forked from chteufleur/go-xmpp4steam
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:
parent
f83354ae74
commit
f9dc7d6b12
|
|
@ -126,7 +126,7 @@ func execCommandAdHoc(iq *xmpp.Iq) {
|
||||||
}
|
}
|
||||||
reply.PayloadEncode(cmd)
|
reply.PayloadEncode(cmd)
|
||||||
comp.Out <- reply
|
comp.Out <- reply
|
||||||
} else if adHoc.Action == xmpp.ActionAdHocExecute {
|
} else if adHoc.Action == xmpp.ActionAdHocExecute || adHoc.Action == xmpp.ActionAdHocNext {
|
||||||
// Last step in the command
|
// Last step in the command
|
||||||
log.Printf("%sAd-Hoc command (Node : %s). Last step.", LogInfo, adHoc.Node)
|
log.Printf("%sAd-Hoc command (Node : %s). Last step.", LogInfo, adHoc.Node)
|
||||||
reply := iq.Response(xmpp.IQTypeResult)
|
reply := iq.Response(xmpp.IQTypeResult)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue