From 9bfbfa381abc92f3c5fc8e97405943128c85c5d4 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 10 Feb 2009 23:15:48 +0000 Subject: 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. --- OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index 1469f5d..6e0f8cb 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs @@ -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 ", "Bypass permission checks", HandleBypassPermissions); - m_scene.AddCommand("permissions", "force permissions", + m_scene.AddCommand(this, "force permissions", "force permissions ", "Force permissions on or off", HandleForcePermissions); - m_scene.AddCommand("permissions", "debug permissions", + m_scene.AddCommand(this, "debug permissions", "debug permissions ", "Enable permissions debugging", HandleDebugPermissions); -- cgit v1.1