-
-
Notifications
You must be signed in to change notification settings - Fork 443
Allow ROOT flag to call public votes #1733
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
Conversation
This patch allow ROOT flag to call votes even if a delay is set. Its nice to have the possibility to set a delay betweens votes to limit public votes. Generally, we do this when we have lots of admins. But as a ROOT flag this limit shall no be set.
This patch allow ROOT flag to call votes even if a delay is set. Its nice to have the possibility to set a delay betweens votes to limit public votes. Generally, we do this when we have lots of admins. But as a ROOT flag this limit shall no be set.
plugins/basevotes.sp
Outdated
@@ -406,8 +406,13 @@ void VoteSelect(Menu menu, int param1, int param2 = 0) | |||
|
|||
bool TestVoteDelay(int client) | |||
{ | |||
if (CheckCommandAccess(client, "sm_vote_access", ADMFLAG_ROOT, true)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sm_vote_access
seems a bit off as a name, and is probably going to clash with any future changes to vote cmds.
May I recommend sm_vote_delay_bypass
, also the default flag for this shouldn't be the admin flag root
but cvar
, in order to line up with sm's sm_vote_delay
convar as any admin with such permission could disable delays anyways. This will still allow root admins to bypass delays regardless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed this is a duplicate of #1730, making a reference to it here so my comment can be relayed on both without having to send it twice.
Duplicate of #1730 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
This patch allow ROOT flag to call votes even if a delay is set. Its nice to have the possibility to set a delay betweens votes to limit public votes. Generally, we do this when we have lots of admins. But as a ROOT flag this limit shall no be set.