Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: cba_fnc_deleteEntity where group must be local to the machine executing deleteGroup command #916

Merged
merged 1 commit into from
Apr 29, 2018

Conversation

Vdauphin
Copy link
Contributor

@Vdauphin Vdauphin commented Apr 28, 2018

Hello, I don't know if this function is supposed to be executed only locally but here is the fix in case group is not local to the machine trying to delete the group, or at least a solution.

When merged this pull request will:

  • Fix cba_fnc_deleteEntity where the group must be local to the machine executing the deleteGroup.
  • check if group is local
  • if not delete it where the group is local if we know it
  • if not send the deletegroup to the server where groupOwner can be
    know

https://community.bistudio.com/wiki/deleteGroup
* check if group is local
* if not delete it where the group is local if we know it
* if not send the deletegroup to the server where groupOwner can be
excecuted
@commy2
Copy link
Contributor

commy2 commented Apr 28, 2018

Just curious. Did you actually use that function and encountered this particular problem?

@Vdauphin
Copy link
Contributor Author

First, I wrote a similar function (btc_fnc_delete) and notice this issue so I wrote this btc_fnc_deletegroup.

Now, I want to use more CBA function and saw that, so I send the fix.

@commy2
Copy link
Contributor

commy2 commented Apr 28, 2018

I see. Script looks good to me.

@Killswitch00 Killswitch00 merged commit 48d4a26 into CBATeam:master Apr 29, 2018
@Vdauphin Vdauphin deleted the FIX-deletegroup branch April 29, 2018 08:10
@commy2 commy2 added this to the 3.7 milestone Apr 29, 2018
Vdauphin added a commit to Vdauphin/HeartsAndMinds that referenced this pull request Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants