diff options
author | BlueWall | 2014-12-16 12:47:02 -0500 |
---|---|---|
committer | BlueWall | 2014-12-16 12:47:02 -0500 |
commit | e50aac020f6a0b522b507cb3fac930103203dbc8 (patch) | |
tree | d9257d51533e5de34b58b60936947f05e2cc18ff | |
parent | Adding command to reset user's email address (diff) | |
download | opensim-SC_OLD-e50aac020f6a0b522b507cb3fac930103203dbc8.zip opensim-SC_OLD-e50aac020f6a0b522b507cb3fac930103203dbc8.tar.gz opensim-SC_OLD-e50aac020f6a0b522b507cb3fac930103203dbc8.tar.bz2 opensim-SC_OLD-e50aac020f6a0b522b507cb3fac930103203dbc8.tar.xz |
Add command to reset region's user cache
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs index 9bf7885..6479430 100644 --- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs +++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs | |||
@@ -680,6 +680,21 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement | |||
680 | "Show the bindings between user UUIDs and user names", | 680 | "Show the bindings between user UUIDs and user names", |
681 | String.Empty, | 681 | String.Empty, |
682 | HandleShowUsers); | 682 | HandleShowUsers); |
683 | |||
684 | MainConsole.Instance.Commands.AddCommand("Users", true, | ||
685 | "reset user cache", | ||
686 | "reset user cache", | ||
687 | "reset user cache to allow changed settings to be applied", | ||
688 | String.Empty, | ||
689 | HandleResetUserCache); | ||
690 | } | ||
691 | |||
692 | private void HandleResetUserCache(string module, string[] cmd) | ||
693 | { | ||
694 | lock(m_UserCache) | ||
695 | { | ||
696 | m_UserCache.Clear(); | ||
697 | } | ||
683 | } | 698 | } |
684 | 699 | ||
685 | private void HandleShowUser(string module, string[] cmd) | 700 | private void HandleShowUser(string module, string[] cmd) |