Skip to content

Conversation

@peace-maker
Copy link
Member

Allow to access the convar flags FCVAR_* value from the iterator using a ConVarFlags property.
The CommandIterator.Flags property should have been called AdminFlags, but it's too late to change that now.

This was brought up in #1831.

Allow to access the convar flags `FCVAR_*` value from the iterator.
The CommandIterator.Flags property should have been called `AdminFlags`,
but it's too late to change that now.
@peace-maker peace-maker requested a review from asherkin December 1, 2022 21:19
Copy link
Member

@asherkin asherkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth aliasing Flags as AdminFlags and deprecating the former now?

@peace-maker
Copy link
Member Author

Yes, but deprecation of methodmap properties isn't implemented. alliedmodders/sourcepawn#676

Rename it to .AdminFlags now that we have two kinds of flags exposed
on the iterator.
@peace-maker peace-maker merged commit 02f1888 into master Dec 4, 2022
@peace-maker peace-maker deleted the cmditer_convarflags branch December 4, 2022 11:24
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.

2 participants