JamminR and Megiddo, I think it's probably best you don't answer anymore questions regarding the ULX Lua as you don't seem to have a clue how any of it works.
Well that has to be the funniest thing I've read all week!
Did you just copy and paste another admin tool, change a few bits and then release it as ULX?
K, never mind, you just beat your own record there. (I'd advise looking up our history-- we've been around since before admin mods were a thing)
okiedoke, you got confused when you started talking about "ulx hiddenecho". Megiddo clarified in his next post that...
The access tag is "ulx seeanonymousechoes", and it only has any effect if the echo mode is set to 1.
...because "ulx hiddenecho" has no affect on any of the echo modes. You never specifically asked us what "ulx hiddenecho" did, you just stated that you would like to use it to do what you wanted to:
The groups I want to be able to see echoes have ulx hiddenecho, I can see that in the groups.txt file.
At least, you didn't mention it up until the point where you were saying we can't/won't tell you the difference.
Now, here is some hopefully useful overall explanations to make sure we're clear:
As you're probably aware, there are only the three echo modes right now:
0 - No output to anyone
1 - Output to everyone, but groups that don't have access to "ulx seeanonymousechos" see "(Anonymous) slapped Foo!"
2 - Output to everyone, and see the full output "(Stickly Man) Slapped Foo!"
We have
an issue on our bugtracker to add the feature discussed in this thread- but we can only get to it when we have the available time, meaning you will need to do some of your own edits to the code (more on that in a bit).
There are some commands, such as ulx spectate and rcon that are set to be hidden since we would never want all players to be able to see those. For these commands, only groups that have access to "ulx hiddenecho" will receive the echos that an admin has spectated someone, used an rcon command, etc. So hiddenecho works on a per-command basis, and has nothing to do with the other echos.
local seeanonymousechoAccess = "ulx seeanonymousechoes"
ULib.ucl.registerAccess( seeanonymousechoAccess, ULib.ACCESS_ADMIN, "Ability to see who uses a command even with ulx logEcho set to 1", "Other" )
Now the ability to change ULib.ACCESS_ADMIN to a custom usergroup and being able to change it to work when echo is set to 0 would be PERFECT.
This is an FYI, but "ULib.ACCESS_ADMIN" is just a variable that contains the admin group name as a string ("admin"). So, you could replace it with "admin" or "superadmin" or whatever you want, but all that would do is change which group gets it by default when the server starts-- which is why we recommended using "ulx groupallow" to assign the tag to groups like you would any other access tag/command.
Now, possibly the easiest and hackyish way to get what you want without putting much thought into it is to
go through our codebase and find every function call to fancyLogAdmin, and set the second parameter to true. (You can use the ulx rcon command echo as an example for what it should look like). Unless I'm mistaken, all echos should then be treated as hidden, and only the groups who have access to "ulx hiddenechos" will be able to see them at all.
The better way to fix it would be to edit the fancyLogAdmin funciton itself to ignore the check to see if the command is hidden or not:
if hide_echo then
<code>
end
Just remove the if statement and leave the code, and it should treat all echos as hidden. However, this area of code is Megiddo's, and I know very little about it besides the quick glance I've just done, so I can't guarantee 100% that these methods will work or be without side effects (as in, hiding much more output than I intended).
And lastly, never ever assume someone else is at fault when you're not getting the information you want. Take a step back, calm down, have patience, and clarify in more detail what you are asking. Others may have misread what you've stated previously, and clarifying will give them another chance to read it properly- nobody is immune to communication problems. You didn't deserve a post like this, so be thankful I'm in a good mood today.