mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Add proper handling for shared vs. unshared modules to the command
interface. Shared modules will now only get added once, so the command handler is called once per module, not once per scene. Removal of scenes has no adverse effects. Nonshared modules will be called for each scene.
This commit is contained in:
@@ -114,15 +114,17 @@ namespace OpenSim.Grid.GridServer
|
||||
|
||||
base.StartupSpecific();
|
||||
|
||||
m_console.Commands.AddCommand("gridserver", "enable registration",
|
||||
m_console.Commands.AddCommand("gridserver", false,
|
||||
"enable registration",
|
||||
"enable registration",
|
||||
"Enable new regions to register", HandleRegistration);
|
||||
|
||||
m_console.Commands.AddCommand("gridserver", "disable registration",
|
||||
m_console.Commands.AddCommand("gridserver", false,
|
||||
"disable registration",
|
||||
"disable registration",
|
||||
"Disable registering new regions", HandleRegistration);
|
||||
|
||||
m_console.Commands.AddCommand("gridserver", "show status",
|
||||
m_console.Commands.AddCommand("gridserver", false, "show status",
|
||||
"show status",
|
||||
"Show registration status", HandleShowStatus);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace OpenSim.Grid.InventoryServer
|
||||
|
||||
base.StartupSpecific();
|
||||
|
||||
m_console.Commands.AddCommand("inventoryserver", "add user",
|
||||
m_console.Commands.AddCommand("inventoryserver", false, "add user",
|
||||
"add user",
|
||||
"Add a random user inventory", HandleAddUser);
|
||||
}
|
||||
|
||||
@@ -127,11 +127,11 @@ namespace OpenSim.Grid.MessagingServer
|
||||
|
||||
base.StartupSpecific();
|
||||
|
||||
m_console.Commands.AddCommand("messageserver", "clear cache",
|
||||
m_console.Commands.AddCommand("messageserver", false, "clear cache",
|
||||
"clear cache",
|
||||
"Clear presence cache", HandleClearCache);
|
||||
|
||||
m_console.Commands.AddCommand("messageserver", "register",
|
||||
m_console.Commands.AddCommand("messageserver", false, "register",
|
||||
"register",
|
||||
"Re-register with user server(s)", HandleRegister);
|
||||
}
|
||||
|
||||
@@ -122,32 +122,32 @@ namespace OpenSim.Grid.UserServer
|
||||
|
||||
base.StartupSpecific();
|
||||
|
||||
m_console.Commands.AddCommand("userserver", "create user",
|
||||
m_console.Commands.AddCommand("userserver", false, "create user",
|
||||
"create user [<first> [<last> [<x> <y> [email]]]]",
|
||||
"Create a new user account", RunCommand);
|
||||
|
||||
m_console.Commands.AddCommand("userserver", "reset user password",
|
||||
m_console.Commands.AddCommand("userserver", false, "reset user password",
|
||||
"reset user password [<first> [<last> [<new password>]]]",
|
||||
"Reset a user's password", RunCommand);
|
||||
|
||||
m_console.Commands.AddCommand("userserver", "login level",
|
||||
m_console.Commands.AddCommand("userserver", false, "login level",
|
||||
"login level <level>",
|
||||
"Set the minimum user level to log in", HandleLoginCommand);
|
||||
|
||||
m_console.Commands.AddCommand("userserver", "login reset",
|
||||
m_console.Commands.AddCommand("userserver", false, "login reset",
|
||||
"login reset",
|
||||
"Reset the login level to allow all users",
|
||||
HandleLoginCommand);
|
||||
|
||||
m_console.Commands.AddCommand("userserver", "login text",
|
||||
m_console.Commands.AddCommand("userserver", false, "login text",
|
||||
"login text <text>",
|
||||
"Set the text users will see on login", HandleLoginCommand);
|
||||
|
||||
m_console.Commands.AddCommand("userserver", "test-inventory",
|
||||
m_console.Commands.AddCommand("userserver", false, "test-inventory",
|
||||
"test-inventory",
|
||||
"Perform a test inventory transaction", RunCommand);
|
||||
|
||||
m_console.Commands.AddCommand("userserver", "logoff-user",
|
||||
m_console.Commands.AddCommand("userserver", false, "logoff-user",
|
||||
"logoff-user <first> <last> <message>",
|
||||
"Log off a named user", RunCommand);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user