diff options
author | MW | 2009-02-25 18:33:15 +0000 |
---|---|---|
committer | MW | 2009-02-25 18:33:15 +0000 |
commit | 4db232763f578048c3339e6a60fe801cc3853b3d (patch) | |
tree | c43b1442bcf1893fb83894873ddfdacdee5a5130 /OpenSim/Grid/UserServer/UserServerCommandModule.cs | |
parent | * Fix my own unit test (diff) | |
download | opensim-SC-4db232763f578048c3339e6a60fe801cc3853b3d.zip opensim-SC-4db232763f578048c3339e6a60fe801cc3853b3d.tar.gz opensim-SC-4db232763f578048c3339e6a60fe801cc3853b3d.tar.bz2 opensim-SC-4db232763f578048c3339e6a60fe801cc3853b3d.tar.xz |
More refactoring of the Grid, User and Messaging servers.
Diffstat (limited to 'OpenSim/Grid/UserServer/UserServerCommandModule.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/UserServerCommandModule.cs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/OpenSim/Grid/UserServer/UserServerCommandModule.cs b/OpenSim/Grid/UserServer/UserServerCommandModule.cs index f35cfec..a6f8af2 100644 --- a/OpenSim/Grid/UserServer/UserServerCommandModule.cs +++ b/OpenSim/Grid/UserServer/UserServerCommandModule.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -59,9 +59,8 @@ namespace OpenSim.Grid.UserServer | |||
59 | 59 | ||
60 | protected IUGAIMCore m_core; | 60 | protected IUGAIMCore m_core; |
61 | 61 | ||
62 | public UserServerCommandModule( UserLoginService loginService) | 62 | public UserServerCommandModule() |
63 | { | 63 | { |
64 | m_loginService = loginService; | ||
65 | } | 64 | } |
66 | 65 | ||
67 | public void Initialise(IUGAIMCore core) | 66 | public void Initialise(IUGAIMCore core) |
@@ -83,8 +82,15 @@ namespace OpenSim.Grid.UserServer | |||
83 | m_userDataBaseService = userDBservice; | 82 | m_userDataBaseService = userDBservice; |
84 | } | 83 | } |
85 | 84 | ||
85 | UserLoginService loginService; | ||
86 | if (m_core.TryGet<UserLoginService>(out loginService)) | ||
87 | { | ||
88 | m_loginService = loginService; | ||
89 | } | ||
90 | |||
86 | ConsoleBase console; | 91 | ConsoleBase console; |
87 | if ((m_core.TryGet<ConsoleBase>(out console)) && (m_cfg != null) && (m_userDataBaseService != null)) | 92 | if ((m_core.TryGet<ConsoleBase>(out console)) && (m_cfg != null) |
93 | && (m_userDataBaseService != null) && (m_loginService != null)) | ||
88 | { | 94 | { |
89 | RegisterConsoleCommands(console); | 95 | RegisterConsoleCommands(console); |
90 | } | 96 | } |