From bf53e8249cfc0a106ec4d3f283ec1271217a122e Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 7 Dec 2023 13:43:06 +0000 Subject: [PATCH] correct a bug with command logs not being in the correct order --- SecondBotEvents/Services/CommandsService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SecondBotEvents/Services/CommandsService.cs b/SecondBotEvents/Services/CommandsService.cs index b63b9c5..ec946ce 100644 --- a/SecondBotEvents/Services/CommandsService.cs +++ b/SecondBotEvents/Services/CommandsService.cs @@ -8,6 +8,7 @@ using System.Text; using System.Linq; using System.Reflection; using System.Net.Http; +using OpenMetaverse.ImportExport.Collada14; namespace SecondBotEvents.Services { @@ -197,6 +198,7 @@ namespace SecondBotEvents.Services return new KeyValuePair(false, "Not accepted via signing"); } KeyValuePair reply = RunCommand(C, viaCustomCommand); + CommandNotice(C.command, source, String.Join("@@@", C.args), reply.Key); return reply; } @@ -385,7 +387,7 @@ namespace SecondBotEvents.Services public void CommandNotice(string command,string source, string args,bool accepted) { - BotCommandNotice e = new BotCommandNotice(command, source, args, accepted); + BotCommandNotice e = new BotCommandNotice(command, args, source, accepted); EventHandler handler = BotclientCommandEventNotices; handler?.Invoke(this, e); if(master.BotClient.basicCfg.GetLogCommands() == true) @@ -431,11 +433,9 @@ namespace SecondBotEvents.Services if (requireSigning == false) { accepted = true; // just accept the command - master.CommandNotice(command, source, String.Join("@@@", args), accepted); return; } Vaildate(requireTimewindow, windowSize, secret); - master.CommandNotice(command, source, String.Join("@@@", args), accepted); } protected void Vaildate(bool requireTimewindow, int windowSize, string secret)