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

Target matching in handleFloodSnote #4

Open
mweinelt opened this issue Mar 13, 2022 · 2 comments
Open

Target matching in handleFloodSnote #4

mweinelt opened this issue Mar 13, 2022 · 2 comments

Comments

@mweinelt
Copy link

It is unclear to me which is correct, but likely only one can be.

ozone/plugin.py

Lines 2625 to 2626 in 98a47c6

if target.startswith('libera-connect'):
return

ozone/plugin.py

Line 2643 in 98a47c6

if not (ircdb.checkCapability(q, 'protected') or target == 'libera-connect'):

@mweinelt
Copy link
Author

I misunderstood what this was used for, but still the matching should probably be one or the other. Either a prefix match or a total match.

@ncoevoet
Copy link
Member

we want to avoid anyone with protected capability or with the nick libera-connect, yes libera-connect should be protected.

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

No branches or pull requests

2 participants