groupinvite command skip membership check

This commit is contained in:
Madpeter 2020-07-06 05:21:46 +01:00
parent dd8b781643
commit 0e0591bb39

View file

@ -75,34 +75,11 @@ namespace BSB.Commands.Group
if (bot.MyGroups.ContainsKey(target_group) == true) if (bot.MyGroups.ContainsKey(target_group) == true)
{ {
if (bot.GetAllowGroupInvite(target_avatar) == true) 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 bot.GroupInviteLockoutArm(target_avatar); // enable 120 sec cooldown
ForRealGroupInvite(args, target_group, target_avatar); ForRealGroupInvite(args, target_group, target_avatar);
return true; return true;
} }
}
else
{
return true; // they are in the group (or we have old data) retry in like 2 mins
}
}
else else
{ {
return Failed("Group invite to this avatar is on 120sec cooldown"); return Failed("Group invite to this avatar is on 120sec cooldown");