mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
More refactoring of the Grid, User and Messaging servers.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
@@ -59,9 +59,8 @@ namespace OpenSim.Grid.UserServer
|
||||
|
||||
protected IUGAIMCore m_core;
|
||||
|
||||
public UserServerCommandModule( UserLoginService loginService)
|
||||
public UserServerCommandModule()
|
||||
{
|
||||
m_loginService = loginService;
|
||||
}
|
||||
|
||||
public void Initialise(IUGAIMCore core)
|
||||
@@ -83,8 +82,15 @@ namespace OpenSim.Grid.UserServer
|
||||
m_userDataBaseService = userDBservice;
|
||||
}
|
||||
|
||||
UserLoginService loginService;
|
||||
if (m_core.TryGet<UserLoginService>(out loginService))
|
||||
{
|
||||
m_loginService = loginService;
|
||||
}
|
||||
|
||||
ConsoleBase console;
|
||||
if ((m_core.TryGet<ConsoleBase>(out console)) && (m_cfg != null) && (m_userDataBaseService != null))
|
||||
if ((m_core.TryGet<ConsoleBase>(out console)) && (m_cfg != null)
|
||||
&& (m_userDataBaseService != null) && (m_loginService != null))
|
||||
{
|
||||
RegisterConsoleCommands(console);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user