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

Merged
chteufleur merged 1 commits from louiz/go-xmpp4steam:master into master 2016-08-11 10:04:59 +00:00
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)