ULX

Author Topic: ULib reload concommand?  (Read 7671 times)

0 Members and 1 Guest are viewing this topic.

Offline mmavipc

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
ULib reload concommand?
« on: November 26, 2010, 01:02:30 PM »
Sometimes, you have to go undercover to investigate something. When you have UTeam and SUIScoreBoard this can be hard. So I tried removing myself from users.txt, joined, and was still Owner. ulib_reload_users please?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULib reload concommand?
« Reply #1 on: November 26, 2010, 03:05:12 PM »
ULib updates access levels anytime ULX adduser/removeuser is used. No need to reload.
If you aren't using ULX, you'd need to write your own function to do that action.

Unless Owner is a group (or UTeam team) you created, there is no Owner group by default in ULib or Gmod.
There are two users.txt files. One ULib creates/updates; /data/ULib/users.txt and one that Gmod uses (and ULib imports) for (all) Lua scripts to determine admin access on a server.
You'd need to use "ulx removeuser" to remove yourself from ULib's by default, edit the Gmod's /settings/users.txt to not include yourself, then rejoin the server.
To my knowledge, /settings/users.txt can't be reloaded dynamically and may require restart of server for its changes to take effect.



"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline mmavipc

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: ULib reload concommand?
« Reply #2 on: November 27, 2010, 12:39:35 AM »
Owner is a group I created myself, is there a way to make a silent adduser/removeuser?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULib reload concommand?
« Reply #3 on: November 27, 2010, 10:50:48 AM »
I thought Megiddo was working on a way to add back echo/log levels as in the old release.
In the past, setting echo level would either show all players, show only admins, or show none.
Using console commands would also affect how public the commands were.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline mmavipc

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: ULib reload concommand?
« Reply #4 on: November 27, 2010, 11:10:16 AM »
would removing this line
Code: [Select]
adduser:logString( "#1s added #2s to group #3s" )make it silent?

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: ULib reload concommand?
« Reply #5 on: November 28, 2010, 09:10:56 AM »
I believe so, not 100% sure though.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULib reload concommand?
« Reply #6 on: November 28, 2010, 09:34:43 AM »
Yes, but, it would also prevent logging to text files.
If someone were to ever add an admin, you'd never know who.
"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: ULib reload concommand?
« Reply #7 on: November 28, 2010, 09:51:06 AM »
Why not set ulx logEcho to 0 to turn off the echoes?
Experiencing God's grace one day at a time.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: ULib reload concommand?
« Reply #8 on: November 28, 2010, 10:08:03 AM »
If you don't want to do any of the above, I'd be willing to create a quick silent command.