Author Topic: Fadmin  (Read 1650 times)

0 Members and 2 Guests are viewing this topic.

Offline DUBSTEP

  • Newbie
  • *
  • Posts: 10
  • Karma: -1
Fadmin
« on: July 27, 2016, 02:27:08 PM »
When creating a  group with fadmin, it makes the group name lowercase!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Fadmin
« Reply #1 on: July 27, 2016, 03:25:48 PM »
As in our opinion, all group mods should.
It's the end user and other admin mods that kept reporting 'bugs' to us when they broke because people typed "SuPeRaDmIn" instead of superadmin and would come here and complain.
Hence, we stopped forcing lowercase because other admin mods stopped forcing it, or allowing mixed case as Lua can.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline DUBSTEP

  • Newbie
  • *
  • Posts: 10
  • Karma: -1
Re: Fadmin
« Reply #2 on: July 27, 2016, 04:08:45 PM »
so for like admin/mod/etc we should lower case them in ulx?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Fadmin
« Reply #3 on: July 27, 2016, 06:08:55 PM »
Recommended, yes.
ULX doesn't enforce any case.
Lua, in and of itself, is case sensitive.
Superadmin is not the same as superadmin.
Gmod expects two lower case groups (3 actually), superadmin, admin, user.
Gmod's lua function "IsSuperAdmin" will only return true if the group someone in is named "superadmin", not "SuperAdmin".

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