Merge pull request #82 from herman1vdb/patch-1

Fix: Unexpected behaviour for CommandAction #81
This commit is contained in:
Ben Merrills 2017-01-01 18:25:53 +00:00 committed by GitHub
commit 870cbde5a8

View file

@ -272,17 +272,18 @@ namespace AsterNET.Manager
if (processingCommandResult)
{
if (line == "--END COMMAND--")
string lineLower = line.ToLower(Helper.CultureInfo);
if (lineLower == "--end command--")
{
var commandResponse = new CommandResponse();
Helper.SetAttributes(commandResponse, packet);
commandList.Add(line);
commandResponse.Result = commandList;
processingCommandResult = false;
packet.Clear();
mrConnector.DispatchResponse(commandResponse);
}
string lineLower = line.ToLower(Helper.CultureInfo);
if (lineLower.StartsWith("privilege: ")
else if (lineLower.StartsWith("privilege: ")
|| lineLower.StartsWith("actionid: ")
|| lineLower.StartsWith("timestamp: ")
|| lineLower.StartsWith("server: ")
@ -360,4 +361,4 @@ namespace AsterNET.Manager
#endregion
}
}
}