Author Topic: Allowing commands with certain syntax?  (Read 3141 times)

0 Members and 1 Guest are viewing this topic.

Offline TomatoSoup

  • Newbie
  • *
  • Posts: 40
  • Karma: 3
Allowing commands with certain syntax?
« on: June 10, 2007, 05:01:37 PM »
I have certain gamemodes/other stuff bound into .cfg files, so I want to give my admins the ability to change gamemodes by using rcon. But I only want them to be able to do certain rcon commands. Like !rcon exec spacebuild, or !rcon exec freespace

You get the idea, can I do ulx userallow "ulx rcon exec freespace"?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Allowing commands with certain syntax?
« Reply #1 on: June 10, 2007, 05:44:06 PM »
Not in the current implementation no. This is something we've always been meaning to do though, so stay tuned.
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Allowing commands with certain syntax?
« Reply #2 on: June 10, 2007, 07:23:30 PM »
Um... we have "ulx exec" which executes the specified config file. There is no way to restrict which cfg files can be run, but it is more restricted than full rcon access.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Allowing commands with certain syntax?
« Reply #3 on: June 10, 2007, 08:30:27 PM »
Would "ulx userallow" be the way for him to impliment it
Groups.txt 'allow' table would be easiest 'mass' way I would think

"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: Allowing commands with certain syntax?
« Reply #4 on: June 10, 2007, 11:00:34 PM »
Um... we have "ulx exec" which executes the specified config file. There is no way to restrict which cfg files can be run, but it is more restricted than full rcon access.

Doh, that's what I was thinking of. Guess we did implement it after all.
Experiencing God's grace one day at a time.

Offline TomatoSoup

  • Newbie
  • *
  • Posts: 40
  • Karma: 3
Re: Allowing commands with certain syntax?
« Reply #5 on: June 11, 2007, 12:05:34 PM »
Thanks guys!

Anyway, it would be a good idea to allow stuff like that. So we could give a person the ability to ban for one hour by using a command like

ulx userallow Firefox "ulx ban [wildcard] 60" or whatever the ban syntax is.