Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > enable

 

enable

Syntax

system.movie.enable ["movieName1" {, "movieName2", "movieName3"}]
system.group.enable ["groupName1" {, "groupName2", "groupName3"}]

Description

Multiuser Server command; when movie is specified, enables the given movie or movies on the server so future connections can be made. Current connections are not affected. When group is specified, the given group or groups are enabled to accept new members.

The server responds with a message that has the same object and command in the #sender parameter and the same #subject and #contents.

If the server is not set up with the allowMovie command in the configuration file, by default it allows connections from all movies. The disable command blocks log-ons from specific movies, while the enable command reenables a movie disabled by disable. Never disable all movies; this would prevent even an administrator movie from logging on to reenable other movies.

Examples

This statement enables the movie TankWars on the server:

errCode = gMultiuserInstance.sendNetMessage("system.movie.enable", "anySubject", "TankWars")

To enable more than one movie, use a list containing the movie names:

errCode = gMultiuserInstance.sendNetMessage("system.movie.enable", "anySubject", ["TankWars", "TicTacToe", "Checkers"])

This statement enables the group @RedTeam to allow new members to join:

errCode = gMultiuserInstance.sendNetMessage("system.group.enable", "anySubject", "@RedTeam")

See also

sendNetMessage(), disable