From 6c102ab250dfc5de175efa8929c841bdb9cb0733 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Thu, 7 May 2020 04:31:25 +0100 Subject: [PATCH] Adds after lookup to the command history --- Core/Commands/commandlib.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/Commands/commandlib.cs b/Core/Commands/commandlib.cs index fd53f9e..88c0cfe 100644 --- a/Core/Commands/commandlib.cs +++ b/Core/Commands/commandlib.cs @@ -13,6 +13,8 @@ namespace BSB.Commands { public class pending_avatar_lookup { + public CoreCommand GetCommand { get { return Command; } } + public List Getargs { get { return args; } } public pending_avatar_lookup(CoreCommandsInterface set_master,CoreCommand set_cmd,string[] set_args) { Master = set_master; @@ -116,7 +118,8 @@ namespace BSB.Commands } foreach(int a in call_indexs) { - commands_pending_avatar_lookups[a].Callnow(); + KeyValuePair result = commands_pending_avatar_lookups[a].Callnow(); + bot.CommandHistoryAdd(commands_pending_avatar_lookups[a].GetCommand.CommandName, String.Join("~#~", commands_pending_avatar_lookups[a].Getargs), result.Key, result.Value); commands_pending_avatar_lookups_ages.Remove(a); commands_pending_avatar_lookups.Remove(a); }