From 990ddb38f9f0daa7d4a50a4cb05c0e815e9d85bc Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sun, 26 Apr 2020 01:37:35 +0100 Subject: [PATCH] adds callback command history support to these functions --- Core/Commands/Group/GroupInvite.cs | 14 ++++++++++++++ Core/Commands/Group/getGroupRoles.cs | 1 + Core/Commands/Group/groupchat.cs | 5 +++++ 3 files changed, 20 insertions(+) diff --git a/Core/Commands/Group/GroupInvite.cs b/Core/Commands/Group/GroupInvite.cs index aef0076..72028ee 100644 --- a/Core/Commands/Group/GroupInvite.cs +++ b/Core/Commands/Group/GroupInvite.cs @@ -37,13 +37,27 @@ namespace BSB.Commands.Group if (reply.Members.ContainsKey(target_avatar) == false) { ForRealGroupInvite(args, target_group, target_avatar); + base.Callback(args, e); + } + else + { + base.Callback(args, e, false); } } else { ConsoleLog.Crit("Callback sent for the wrong group as part of group invite!"); + base.Callback(args, e, false); } } + else + { + base.Callback(args, e, false); + } + } + else + { + base.Callback(args, e, false); } } public override bool CallFunction(string[] args) diff --git a/Core/Commands/Group/getGroupRoles.cs b/Core/Commands/Group/getGroupRoles.cs index 1b5dcbb..c585f2b 100644 --- a/Core/Commands/Group/getGroupRoles.cs +++ b/Core/Commands/Group/getGroupRoles.cs @@ -56,6 +56,7 @@ namespace BSB.Commands.Group } } bot.GetCommandsInterface.SmartCommandReply(args[0], reply, CommandName); + base.Callback(args, e); } } } diff --git a/Core/Commands/Group/groupchat.cs b/Core/Commands/Group/groupchat.cs index 143a0d3..4a785ff 100644 --- a/Core/Commands/Group/groupchat.cs +++ b/Core/Commands/Group/groupchat.cs @@ -54,6 +54,11 @@ namespace BSB.Commands.Group if (UUID.TryParse(args[0], out UUID targetgroup) == true) { bot.GetClient.Self.InstantMessageGroup(targetgroup, args[1]); + base.Callback(args, e); + } + else + { + base.Callback(args, e,false); } } }