diff options
author | Justin Clark-Casey (justincc) | 2014-03-25 00:20:38 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-03-25 00:20:38 +0000 |
commit | 091f3a80008a0f4a756fcb9ff4e87a24c2948c3c (patch) | |
tree | a98354e9317e0ed6892dec344a69447c0e9c70b8 /OpenSim/Addons/Groups/GroupsMessagingModule.cs | |
parent | Don't fail to enable permissions modules correctly if there is any leading or... (diff) | |
parent | Fixed Debug command for Groups. (Use of wrong capitalization caused *two* "de... (diff) | |
download | opensim-SC_OLD-091f3a80008a0f4a756fcb9ff4e87a24c2948c3c.zip opensim-SC_OLD-091f3a80008a0f4a756fcb9ff4e87a24c2948c3c.tar.gz opensim-SC_OLD-091f3a80008a0f4a756fcb9ff4e87a24c2948c3c.tar.bz2 opensim-SC_OLD-091f3a80008a0f4a756fcb9ff4e87a24c2948c3c.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Addons/Groups/GroupsMessagingModule.cs')
-rw-r--r-- | OpenSim/Addons/Groups/GroupsMessagingModule.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Addons/Groups/GroupsMessagingModule.cs b/OpenSim/Addons/Groups/GroupsMessagingModule.cs index 92528a2..bbb5e05 100644 --- a/OpenSim/Addons/Groups/GroupsMessagingModule.cs +++ b/OpenSim/Addons/Groups/GroupsMessagingModule.cs | |||
@@ -110,7 +110,15 @@ namespace OpenSim.Groups | |||
110 | m_messageOnlineAgentsOnly = groupsConfig.GetBoolean("MessageOnlineUsersOnly", false); | 110 | m_messageOnlineAgentsOnly = groupsConfig.GetBoolean("MessageOnlineUsersOnly", false); |
111 | 111 | ||
112 | if (m_messageOnlineAgentsOnly) | 112 | if (m_messageOnlineAgentsOnly) |
113 | { | ||
113 | m_usersOnlineCache = new ExpiringCache<UUID, PresenceInfo[]>(); | 114 | m_usersOnlineCache = new ExpiringCache<UUID, PresenceInfo[]>(); |
115 | } | ||
116 | else | ||
117 | { | ||
118 | m_log.Error("[Groups.Messaging]: GroupsMessagingModule V2 requires MessageOnlineUsersOnly = true"); | ||
119 | m_groupMessagingEnabled = false; | ||
120 | return; | ||
121 | } | ||
114 | 122 | ||
115 | m_debugEnabled = groupsConfig.GetBoolean("DebugEnabled", true); | 123 | m_debugEnabled = groupsConfig.GetBoolean("DebugEnabled", true); |
116 | 124 | ||
@@ -260,7 +268,7 @@ namespace OpenSim.Groups | |||
260 | // Sending to offline members is not an option. | 268 | // Sending to offline members is not an option. |
261 | string[] t1 = groupMembers.ConvertAll<string>(gmd => gmd.AgentID.ToString()).ToArray(); | 269 | string[] t1 = groupMembers.ConvertAll<string>(gmd => gmd.AgentID.ToString()).ToArray(); |
262 | 270 | ||
263 | // We cache in order not to overwhlem the presence service on large grids with many groups. This does | 271 | // We cache in order not to overwhelm the presence service on large grids with many groups. This does |
264 | // mean that members coming online will not see all group members until after m_usersOnlineCacheExpirySeconds has elapsed. | 272 | // mean that members coming online will not see all group members until after m_usersOnlineCacheExpirySeconds has elapsed. |
265 | // (assuming this is the same across all grid simulators). | 273 | // (assuming this is the same across all grid simulators). |
266 | if (!m_usersOnlineCache.TryGetValue(groupID, out onlineAgents)) | 274 | if (!m_usersOnlineCache.TryGetValue(groupID, out onlineAgents)) |