User List
List Users is one of the sysop-configurable loadable modules: the module executed when a user lists the users of the system from the Terminal server. The stock module is exec/userlist.js.
Install
The stock module needs no installation: userlist is the default value of SCFG->System->Loadable Modules->List Users. That is the value of a new installation; when the option is blank, the Terminal Server's built-in user list is used instead.
Being a loadable module, it is easily replaced by a module of the sysop's choosing:
- Set SCFG->System->Loadable Modules->List Users to the name (or command-line) of a different module, or
With a different module configured, the remainder of this page applies only so far as that module implements it.
Invoke
The configured List Users module runs whenever a Baja USERLIST_ALL, USERLIST_SUB or USERLIST_DIR function or the JS bbs.list_users() method is invoked, e.g. by a command shell's User List command. It is passed the kind of list wanted:
| Argument | Users listed |
|---|---|
0 | All of the system's users |
1 | The users with access to the current message sub-board |
2 | The users with access to the current file directory |
Deleted and inactive user accounts are never listed.
Use
The user is first asked how to sort the list:
| Key | Order |
|---|---|
N | By user name |
L | By date last on, most recent first |
# | By user number: each user is listed as the user database is read |
Each line shows the user's name and number, their location (or their note, per the system's Use Location in User Lists setting), the date they were last on and the type of their last connection. The list ends with the total number of users and, for the second and third kinds of list, the number with access to the current sub-board or directory. A list may be aborted with Ctrl-C.
Configure
The stock module has no modopts.ini options. Its text is these strings, customized in the ctrl/text.ini file:
| Text ID | Use |
|---|---|
UserListFmt | A line of the list: name and number, location or note, date last on, connection |
CheckingSlots | Displayed while the users are read for a sorted list |
NTotalUsers | The total number of users |
NUsersOnCurSub | The number of users with access to the current sub-board |
NUsersOnCurDir | The number of users with access to the current directory |