~singpolyma/biboumi

c13f3005e6fd984d6f79ca98c682f7d2059495f7 — louiz’ 4 years ago f1936fd
Use a “complete” action for the last step of ad-hoc commands instead of next
1 files changed, 4 insertions(+), 1 deletions(-)

M src/xmpp/adhoc_commands_handler.cpp
M src/xmpp/adhoc_commands_handler.cpp => src/xmpp/adhoc_commands_handler.cpp +4 -1
@@ 80,7 80,10 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co
            {
              command_node["status"] = "executing";
              XmlSubNode actions(command_node, "actions");
              XmlSubNode next(actions, "next");
              if (session.remaining_steps() == 1)
                XmlSubNode next(actions, "complete");
              else
                XmlSubNode next(actions, "next");
            }
        }
      else if (session_it != this->sessions.end() && action == "cancel")