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:
Melanie Thielker
2009-02-10 23:15:48 +00:00
parent b4be9baa4a
commit 9bfbfa381a
13 changed files with 126 additions and 93 deletions

View File

@@ -171,17 +171,17 @@ namespace OpenSim.Region.CoreModules.World.Permissions
m_scene.Permissions.AddCanTeleportHandler(CanTeleport); //NOT YET IMPLEMENTED
m_scene.AddCommand("permissions", "bypass permissions",
m_scene.AddCommand(this, "bypass permissions",
"bypass permissions <true / false>",
"Bypass permission checks",
HandleBypassPermissions);
m_scene.AddCommand("permissions", "force permissions",
m_scene.AddCommand(this, "force permissions",
"force permissions <true / false>",
"Force permissions on or off",
HandleForcePermissions);
m_scene.AddCommand("permissions", "debug permissions",
m_scene.AddCommand(this, "debug permissions",
"debug permissions <true / false>",
"Enable permissions debugging",
HandleDebugPermissions);