From 0e0591bb391b40d129299f72df754b3a5be688ed Mon Sep 17 00:00:00 2001 From: Madpeter Date: Mon, 6 Jul 2020 05:21:46 +0100 Subject: [PATCH] groupinvite command skip membership check --- Core/Commands/Group/GroupInvite.cs | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/Core/Commands/Group/GroupInvite.cs b/Core/Commands/Group/GroupInvite.cs index 094046b..c422d97 100644 --- a/Core/Commands/Group/GroupInvite.cs +++ b/Core/Commands/Group/GroupInvite.cs @@ -76,32 +76,9 @@ namespace BSB.Commands.Group { if (bot.GetAllowGroupInvite(target_avatar) == true) { - if (bot.FastCheckInGroup(target_group, target_avatar) == false) - { - if (bot.NeedReloadGroupData(target_group) == true) - { - if (bot.CreateAwaitEventReply("groupmembersreply", this, args) == true) - { - bot.GroupInviteLockoutArm(target_avatar); // enable 120 sec cooldown - bot.GetClient.Groups.RequestGroupMembers(target_group); - return true; - } - else - { - return Failed("Unable to await reply"); - } - } - else - { - bot.GroupInviteLockoutArm(target_avatar); // enable 120 sec cooldown - ForRealGroupInvite(args, target_group, target_avatar); - return true; - } - } - else - { - return true; // they are in the group (or we have old data) retry in like 2 mins - } + bot.GroupInviteLockoutArm(target_avatar); // enable 120 sec cooldown + ForRealGroupInvite(args, target_group, target_avatar); + return true; } else {