Vote to Silence Feature

Post here if you need help setting up your server, etc.
Post Reply
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Vote to Silence Feature

Post by INW »

Wondering how to add the feature to vote silence someone by typing /vote silence "player"

I am only aware of the default /vote kick include suspend commands. How would I go about adding the silence feature?

P.S. I already have a vote folder working to include files from my CP which does work.

Also I noticed this topic but it doesn't say how it would be added. I am guessing development maybe?
Hoax
Shutout Match Winner
Posts: 892
Joined: Sun Jun 18, 2006 5:24 pm
Location: UK

Re: Vote to Silence Feature

Post by Hoax »

Can't you just do /vote command silence inw
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Vote to Silence Feature

Post by INW »

hmmm...that seems like a plausible idea. I know G5 has the command stuff or used to in his server.

How would I got about doing that? Make a command file in my vote folder for commands like silence?
Hoax
Shutout Match Winner
Posts: 892
Joined: Sun Jun 18, 2006 5:24 pm
Location: UK

Re: Vote to Silence Feature

Post by Hoax »

I wasn't aware you needed a folder for this, it's just limited by the user level of the submitter, if the command even has restrictions on what auth level can execute it. Although there might be a minimum level needed to use /vote command
Over to someone more informed...
LucK
Shutout Match Winner
Posts: 861
Joined: Tue Nov 17, 2009 8:04 pm

Re: Vote to Silence Feature

Post by LucK »

Heh I think that admins shouldn't be able to silence people* and I deff believe that you should be able to start a poll to silence someone.

The silence menu is there use it.


* I have silenced people in the past but I already admit that if I have power I am going to abuse it that's why I never ask for mod.
User avatar
Z-Man
God & Project Admin
Posts: 11624
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Vote to Silence Feature

Post by Z-Man »

It's not the always access level of the vote caller. If the vote caller has at least the access level ACCESS_LEVEL_VOTE_COMMAND, a successful vote will execute the command at ACCESS_LEVEL_VOTE_COMMAND_EXECUTE or the access level of the vote caller, whatever is better. The following looks safe:

Code: Select all

ACCESS_LEVEL_VOTE_COMMAND_EXECUTE 2
ACCESS_LEVEL_VOTE_COMMAND 15
And then just say "/vote command SILENCE <player name>".

Obvious problem, of course: the command is only interpreted and executed after it's accepted. A name change can easily dodge it.
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Vote to Silence Feature

Post by INW »

Z-Man wrote:Obvious problem, of course: the command is only interpreted and executed after it's accepted. A name change can easily dodge it.
Thanks but that's not good
User avatar
Z-Man
God & Project Admin
Posts: 11624
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Vote to Silence Feature

Post by Z-Man »

In that case, look up the code for /vote kick (in eVoter.cpp, the 'if command == "kick"' line starts it), copy (refactoring common bits first), adapt, submit patch :)
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Vote to Silence Feature

Post by INW »

Oh yes..exactly what i have a major in Z-Man..thanks! :?

(:
Post Reply