Hm, this doesn't seem to be working.
I have file "a.cfg" in /var/ and attempt to do "/vote include a.cfg" and it says "Include file vote/a.cfg not found or not readable" however, if I use "/admin include a.cfg" it works just fine.
So what gives?
vote include
Re: vote include
The hint is in the error message. Vote includes have to be put into the 'vote' subdirectory so nobody can /vote include things they're not meant to include.dukevin wrote:"Include file vote/a.cfg not found or not readable"
Re: vote include
No, not that I'd know of, but apart from the issue you ran into, things should be rather obvious. Oh, and you can tweak the access level vote-included files are executed with at least via ACCESS_LEVEL_VOTE_INCLUDE_EXECUTE.dukevin wrote:Is there documentation on this?
- dukevin
- Round Winner
- Posts: 219
- Joined: Mon Aug 30, 2010 8:25 am
- Location: Southern California
- Contact:
Re: vote include
It works perfectly except I get a weird message (doesn't really matter, but might as well post)
I have ACCESS_LEVEL_VOTE_INCLUDE_EXECUTE 1 but when user /vote includes, it says "Including vote/a.cfg. Only users of access level Administrator or higher will receive the output."
But it works fine when I'm logged in as remote user. Not sure what that means.
I have ACCESS_LEVEL_VOTE_INCLUDE_EXECUTE 1 but when user /vote includes, it says "Including vote/a.cfg. Only users of access level Administrator or higher will receive the output."
But it works fine when I'm logged in as remote user. Not sure what that means.

Re: vote include
It means what it says
All output produced by the include process is only visible to administrators, not necessarily the player who issued the vote or those voting on it. That's because some of the output may contain sensitive information (it probably doesn't, but it could.) If you want the include to have immediately visible effects, use SAY or CONSOLE_OUT commands.
