Skip to content
New issue

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

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

Already on GitHub? # to your account

oc_badwords does not trigger after transfer #953

Closed
Phuk-SLAM opened this issue May 10, 2023 · 2 comments
Closed

oc_badwords does not trigger after transfer #953

Phuk-SLAM opened this issue May 10, 2023 · 2 comments
Labels
1stLevelAnalysed Fixed The issue has been fixed.

Comments

@Phuk-SLAM
Copy link

What version of OpenCollar are you using?
8.2.3

What behavior did you expect?
Badwords triggers, as expected.

What behavior did you see instead?
Badwords works for the initial owner/creator of the collar. When transferred to another person, the punishment will not trigger, although the next owner can set up the app with trigger words, penance, anim, sound etc, the actual punishment silently fails.

What steps does someone need to take to reproduce the problem?
Add oc_badwords to a collar and transfer it to another user.

SOLUTION FOUND:
oc_badwords does not reset on owner change. When adding

if(iChange & CHANGED_OWNER) llResetScript();

to the changed event, the issue is resolved.

@Phuk-SLAM
Copy link
Author

modified script attached
oc_badwords_transfer-fix.txt

@Medea-Destiny
Copy link
Collaborator

Thanks Phuk! Don't worry about the PR, I'll sort that out for you. You'll get the credit though!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
1stLevelAnalysed Fixed The issue has been fixed.
Projects
Development

No branches or pull requests

4 participants