diff options
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalLoginService.cs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index d7b3a58..6088890 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs | |||
@@ -123,9 +123,23 @@ namespace OpenSim.Region.Communications.Local | |||
123 | } | 123 | } |
124 | } | 124 | } |
125 | 125 | ||
126 | public override void CustomiseResponse(LoginResponse response, UserProfileData theUser) | 126 | public override void CustomiseResponse(LoginResponse response, UserProfileData theUser, string startLocationRequest) |
127 | { | 127 | { |
128 | ulong currentRegion = theUser.currentAgent.currentHandle; | 128 | ulong currentRegion = 0; |
129 | if (startLocationRequest == "last") | ||
130 | { | ||
131 | currentRegion = theUser.currentAgent.currentHandle; | ||
132 | } | ||
133 | else if (startLocationRequest == "home") | ||
134 | { | ||
135 | currentRegion = theUser.homeRegion; | ||
136 | } | ||
137 | else | ||
138 | { | ||
139 | // TODO: Parse string in the following format: 'uri:RegionName&X&Y&Z' | ||
140 | currentRegion = theUser.currentAgent.currentHandle; | ||
141 | } | ||
142 | |||
129 | RegionInfo reg = m_Parent.GridService.RequestNeighbourInfo(currentRegion); | 143 | RegionInfo reg = m_Parent.GridService.RequestNeighbourInfo(currentRegion); |
130 | 144 | ||
131 | if (reg != null) | 145 | if (reg != null) |