Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: PAL-18 on May 26, 2013, 08:30:20 PM

Title: Immunity to 1 command?
Post by: PAL-18 on May 26, 2013, 08:30:20 PM
I have admins who are in the same rank regularly banning each other for fun/angry at each other and its annoying to unban them when this happens. 

Is there any way to make it impossible for admins to target others in the same group with just the ban command? (i still want them to be able to use other commands on each other).
Title: Re: Immunity to 1 command?
Post by: JamminR on May 26, 2013, 10:53:33 PM
http://forums.ulyssesmod.net/index.php/topic,4314
That shows in console.

To use XGUI, manage groups, select admin, select ulx ban, add !%admin to the can target field.

Personally, I'd recommend removing admin access from anyone that bans another administrator.

I can't imagine Megiddo keeping me around because I banned Stickly 'just for fun', or even worse, cause I felt like it and was having a bad day.

There's one security issue that could pop up... if another admin's access gets taken over, or another admin goes on a emo spree...you're fellow admins won't be able to keep control by removing them until a superadmin got there.
Title: Re: Immunity to 1 command?
Post by: PAL-18 on May 27, 2013, 01:44:03 AM
Im dealing with an admin who recently started doing custom coding for my servers and the extra power has corrupted him.  :'(

Already warned and hopefully have it solved, but preventing admins from banning each other (even for fun) is easier than unbanning.

Thanks for the commands though :3
Title: Re: Immunity to 1 command?
Post by: PAL-18 on May 27, 2013, 12:54:55 PM
My admin group names have a space in them and when i save the restriction, everything past the space is removed.  How can i get around this?
Title: Re: Immunity to 1 command?
Post by: bender180 on May 27, 2013, 01:17:15 PM
My admin group names have a space in them and when i save the restriction, everything past the space is removed.  How can i get around this?

you cant, spaces are an illegal character for ulx groups
Title: Re: Immunity to 1 command?
Post by: JamminR on May 27, 2013, 03:08:29 PM
you cant, spaces are an illegal character for ulx groups

What he says.
ULX console commands would actually error out.
Apparently, we didn't include the space check in XGUI group additions.
More convo here, including us researching not allowing spaces.
http://forums.ulyssesmod.net/index.php/topic,6289.msg29897.html#msg29897
Title: Re: Immunity to 1 command?
Post by: PAL-18 on May 27, 2013, 11:59:50 PM
What about underscore or hyphen?
Title: Re: Immunity to 1 command?
Post by: Megiddo on May 28, 2013, 05:16:00 AM
What about underscore or hyphen?

Those are fine.
Title: Re: Immunity to 1 command?
Post by: MrPresident on May 28, 2013, 08:19:40 AM
Space characters tell ULib in many instances that whatever comes after the space is a new parameter to the command being run. Some things are written in a way that spaces would be read correctly and you wouldn't notice until you try to do something like set permissions to groups, when you will notice.

It's just good practice to not use spaces in any form of variable or grouping naming convention. Underscores are a much more widely acceptable alternative. If you are coding and you need to display the name of something and want to use spaces, you can always do a simple string.gsub.


print("this is my test_group")

print ("this is my " .. string.gsub( "test_group", "_", " " ) )
would show as ("this is my test group")
Title: Re: Immunity to 1 command?
Post by: PAL-18 on May 28, 2013, 04:08:47 PM
Can i separate multiple groups with comma?  If so, it isint working.  Here's what i have in groups.txt

Code: [Select]
"ulx ban" "!%trusted_senior_admin,!%senior_admin.!%developer,!%junor_admin"
Title: Re: Immunity to 1 command?
Post by: Megiddo on May 28, 2013, 04:40:15 PM
See this recent post (http://forums.ulyssesmod.net/index.php/topic,6276.msg29835.html#msg29835)
Title: Re: Immunity to 1 command?
Post by: PAL-18 on May 28, 2013, 05:19:10 PM
Oh, so i cant do it to multiple groups  :'(
Title: Re: Immunity to 1 command?
Post by: JamminR on May 28, 2013, 07:42:10 PM
Not if any other group inherits from another specified.
Title: Re: Immunity to 1 command?
Post by: Megiddo on May 28, 2013, 08:10:13 PM
Why not just reverse it, PAL? Something like "#user,#operator"