aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs
diff options
context:
space:
mode:
authorJeff Ames2009-04-22 00:48:56 +0000
committerJeff Ames2009-04-22 00:48:56 +0000
commit6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f (patch)
tree55509d75eca81eb3b463984a1981c3a4d4fcce54 /OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs
parentThank you kindly, MCortez, for a patch that: (diff)
downloadopensim-SC_OLD-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.zip
opensim-SC_OLD-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.tar.gz
opensim-SC_OLD-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.tar.bz2
opensim-SC_OLD-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.tar.xz
Add copyright headers. Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs
index ec26dff..9f45fd0 100644
--- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs
@@ -294,7 +294,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
294 294
295 string firstname, lastname; 295 string firstname, lastname;
296 IClientAPI agent; 296 IClientAPI agent;
297 if( m_ActiveClients.TryGetValue(AgentID, out agent) ) 297 if (m_ActiveClients.TryGetValue(AgentID, out agent))
298 { 298 {
299 firstname = agent.FirstName; 299 firstname = agent.FirstName;
300 lastname = agent.LastName; 300 lastname = agent.LastName;
@@ -405,7 +405,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
405 } 405 }
406 406
407 UUID GroupID = new UUID(im.toAgentID); 407 UUID GroupID = new UUID(im.toAgentID);
408 if( m_groupData.GetGroupRecord(GroupID, null) != null) 408 if (m_groupData.GetGroupRecord(GroupID, null) != null)
409 { 409 {
410 UUID NoticeID = UUID.Random(); 410 UUID NoticeID = UUID.Random();
411 string Subject = im.message.Substring(0, im.message.IndexOf('|')); 411 string Subject = im.message.Substring(0, im.message.IndexOf('|'));
@@ -453,9 +453,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
453 GridInstantMessage msg = CreateGroupNoticeIM(UUID.Zero, NoticeID, (byte)OpenMetaverse.InstantMessageDialog.GroupNotice); 453 GridInstantMessage msg = CreateGroupNoticeIM(UUID.Zero, NoticeID, (byte)OpenMetaverse.InstantMessageDialog.GroupNotice);
454 454
455 // Send notice out to everyone that wants notices 455 // Send notice out to everyone that wants notices
456 foreach( GroupMembersData member in m_groupData.GetGroupMembers(GroupID) ) 456 foreach (GroupMembersData member in m_groupData.GetGroupMembers(GroupID))
457 { 457 {
458 if( member.AcceptNotices ) 458 if (member.AcceptNotices)
459 { 459 {
460 msg.toAgentID = member.AgentID.Guid; 460 msg.toAgentID = member.AgentID.Guid;
461 m_MsgTransferModule.SendInstantMessage(msg, delegate(bool success) { }); 461 m_MsgTransferModule.SendInstantMessage(msg, delegate(bool success) { });
@@ -712,7 +712,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
712 { 712 {
713 if (m_debugEnabled) m_log.InfoFormat("[GROUPS] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); 713 if (m_debugEnabled) m_log.InfoFormat("[GROUPS] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
714 714
715 if( m_groupData.GetGroupRecord(UUID.Zero, name) != null ) 715 if (m_groupData.GetGroupRecord(UUID.Zero, name) != null)
716 { 716 {
717 remoteClient.SendCreateGroupReply(UUID.Zero, false, "A group with the same name already exists."); 717 remoteClient.SendCreateGroupReply(UUID.Zero, false, "A group with the same name already exists.");
718 return UUID.Zero; 718 return UUID.Zero;