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

add whitelist #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add whitelist #2

wants to merge 1 commit into from

Conversation

jmbjr
Copy link

@jmbjr jmbjr commented Nov 3, 2015

This adds a really basic whitelist capability, useful when running the tourney scripts for a small group.

The proposed implementation defines a WHITELISTFILE and the is_not_tourney() function checks to see if this is a valid/existing file. if so, it will return True (i.e. skip the player) when the player isn't in the file.

I wasn't sure if this was better than a simple True/False to use a whitelist, PLUS the whitelist filename.

A whitelist is helpful if you want to run the tourney scripts
for a small group.

If WHITELISTFILE is set to a valid/existing file, then is_not_tourney()
returns True for players not in the whitelist file.

WHITELISTFILE defaults to 'player-whitelist.txt'. Simply omit this
file if you don't want to use the whitelist.
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.

1 participant