Commit Graph

18 Commits

Author SHA1 Message Date
Luke aka SwissalpS
f2380e0bb1 more tweaks
- join: check if already member
- leave: checks if user is in given faction at all
- kick: early abort if no player provided
- create: early abort if no faction or password are provided
- create: use get_player_factions() instead of get_player_faction()
- create: reduce explicit nil checks
- disband: early abort if missing password
- disband: reduce param-count-checks and use table.getn()
- info: reduce explicit nil checks and use table.getn()
- passwd: early abort if no password provided
- in general remove explicit nil-checks where not needed
2024-09-15 08:23:12 +02:00
Luke aka SwissalpS
f130b50565 chown: cleanup and tweak
- update help text to standard syntax
- streamline duplicate code
- remove unnecessary param count checks
- remove explicit nil check where not needed
- updated locale to be neutral to admin or owner
- don't call get_owner or valid_password if is admin
- remove core.player_exists() call since target was checked when joined
faction
- abort early if no target or password provided
2024-09-15 07:01:48 +02:00
Luke aka SwissalpS
c68ccd6f44 kick: cleanup
- simplify and reduce calls of core.get_player_privs()
- update help text to standard syntax
- streamline duplicate code
- remove unnecessary param count checks
- remove explicit nil check where not needed
- don't call get_owner if is admin (until needed)
2024-09-15 06:09:33 +02:00
Luke aka SwissalpS
f021427f04 locale: some more de-Frenching 2024-09-15 02:18:21 +02:00
Luke aka SwissalpS
9e3276ad9e locale: the player -> player x 2024-09-15 01:59:52 +02:00
Luke aka SwissalpS
4ed325039d locale: faction x already exists 2024-09-15 01:53:36 +02:00
Luke aka SwissalpS
f5c68e3c5d locale: reuse "faction x doesn't exist" 2024-09-15 01:50:53 +02:00
Luke aka SwissalpS
827751f562 locale: reuse "missing player name" 2024-09-15 01:35:25 +02:00
Luke aka SwissalpS
44d01cc834 locale: reuse string for missing name
besides, "nil" is a valid name. This way there is no confusion.
2024-09-15 01:22:41 +02:00
Luke aka SwissalpS
c28b0a0b04 locale: this -> that or better
also fixed a french mistake: player doesn't own these -> player owns
these
2024-09-15 01:21:48 +02:00
Luke aka SwissalpS
37e70987d0 locale: exists -> exist 2024-09-15 00:41:29 +02:00
Luke aka SwissalpS
bf9905e238 locale: tweak and add "No factions found." 2024-09-15 00:34:13 +02:00
Luke aka SwissalpS
116bc756e1 locale: ownership rephrasing 2024-09-15 00:33:37 +02:00
Luke aka SwissalpS
00f2643b2e locale: remove unused entry 2024-09-15 00:22:28 +02:00
Luke aka SwissalpS
ea58047369 locale: many -> multiple 2024-09-15 00:17:45 +02:00
Luke aka SwissalpS
8f249e27cc Properly use the configurable admin priv in output 2024-09-11 11:03:32 +02:00
Yves-Marie Haussonne
0612afb338 Add checks on command args to avoid server crashes 2021-03-31 18:25:36 +02:00
Louis Royer
50335b7ceb Add missing french translations I forgot in my last PR
because of the "exclude all files by default" policy in .gitignore.
2020-08-23 14:32:56 +02:00