Merge pull request #82 from herman1vdb/patch-1
Fix: Unexpected behaviour for CommandAction #81
This commit is contained in:
commit
870cbde5a8
|
@ -272,17 +272,18 @@ namespace AsterNET.Manager
|
||||||
|
|
||||||
if (processingCommandResult)
|
if (processingCommandResult)
|
||||||
{
|
{
|
||||||
if (line == "--END COMMAND--")
|
string lineLower = line.ToLower(Helper.CultureInfo);
|
||||||
|
if (lineLower == "--end command--")
|
||||||
{
|
{
|
||||||
var commandResponse = new CommandResponse();
|
var commandResponse = new CommandResponse();
|
||||||
Helper.SetAttributes(commandResponse, packet);
|
Helper.SetAttributes(commandResponse, packet);
|
||||||
|
commandList.Add(line);
|
||||||
commandResponse.Result = commandList;
|
commandResponse.Result = commandList;
|
||||||
processingCommandResult = false;
|
processingCommandResult = false;
|
||||||
packet.Clear();
|
packet.Clear();
|
||||||
mrConnector.DispatchResponse(commandResponse);
|
mrConnector.DispatchResponse(commandResponse);
|
||||||
}
|
}
|
||||||
string lineLower = line.ToLower(Helper.CultureInfo);
|
else if (lineLower.StartsWith("privilege: ")
|
||||||
if (lineLower.StartsWith("privilege: ")
|
|
||||||
|| lineLower.StartsWith("actionid: ")
|
|| lineLower.StartsWith("actionid: ")
|
||||||
|| lineLower.StartsWith("timestamp: ")
|
|| lineLower.StartsWith("timestamp: ")
|
||||||
|| lineLower.StartsWith("server: ")
|
|| lineLower.StartsWith("server: ")
|
||||||
|
|
Loading…
Reference in a new issue