Author Topic: Immunity to 1 command?  (Read 3727 times)

0 Members and 2 Guests are viewing this topic.

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Immunity to 1 command?
« 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).

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Immunity to 1 command?
« Reply #1 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Re: Immunity to 1 command?
« Reply #2 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

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Re: Immunity to 1 command?
« Reply #3 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?

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: Immunity to 1 command?
« Reply #4 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
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Immunity to 1 command?
« Reply #5 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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Re: Immunity to 1 command?
« Reply #6 on: May 27, 2013, 11:59:50 PM »
What about underscore or hyphen?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Immunity to 1 command?
« Reply #7 on: May 28, 2013, 05:16:00 AM »
What about underscore or hyphen?

Those are fine.
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Immunity to 1 command?
« Reply #8 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")

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Re: Immunity to 1 command?
« Reply #9 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"

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Immunity to 1 command?
« Reply #10 on: May 28, 2013, 04:40:15 PM »
Experiencing God's grace one day at a time.

Offline PAL-18

  • Full Member
  • ***
  • Posts: 142
  • Karma: 1
Re: Immunity to 1 command?
« Reply #11 on: May 28, 2013, 05:19:10 PM »
Oh, so i cant do it to multiple groups  :'(

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Immunity to 1 command?
« Reply #12 on: May 28, 2013, 07:42:10 PM »
Not if any other group inherits from another specified.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Immunity to 1 command?
« Reply #13 on: May 28, 2013, 08:10:13 PM »
Why not just reverse it, PAL? Something like "#user,#operator"
Experiencing God's grace one day at a time.