diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs index 4cdff70..89c8587 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | |||
@@ -133,8 +133,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends | |||
133 | 133 | ||
134 | public void PostInitialise() | 134 | public void PostInitialise() |
135 | { | 135 | { |
136 | List<Scene> scenes = new List<Scene>(m_scenes.Values); | 136 | if(m_scenes.Count > 0) |
137 | m_TransferModule = scenes[0].RequestModuleInterface<IMessageTransferModule>(); | 137 | { |
138 | m_TransferModule = m_initialScene.RequestModuleInterface<IMessageTransferModule>(); | ||
139 | } | ||
138 | if (m_TransferModule == null) | 140 | if (m_TransferModule == null) |
139 | m_log.Error("[FRIENDS]: Unable to find a message transfer module, friendship offers will not work"); | 141 | m_log.Error("[FRIENDS]: Unable to find a message transfer module, friendship offers will not work"); |
140 | } | 142 | } |