diff options
author | Jeff Ames | 2009-07-23 15:32:11 +0000 |
---|---|---|
committer | Jeff Ames | 2009-07-23 15:32:11 +0000 |
commit | a133e83f3ab38ad7abf0b3c591421d3eac418c0c (patch) | |
tree | 0c0de3d37510a54d8668402d310fc0cf7e8c255d /OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups | |
parent | Minor: rename libsl to libomv in Contributors.txt. (diff) | |
download | opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.zip opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.gz opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.bz2 opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs index 4a46949..fc19785 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs | |||
@@ -724,17 +724,17 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
724 | remoteClient.SendCreateGroupReply(UUID.Zero, false, "A group with the same name already exists."); | 724 | remoteClient.SendCreateGroupReply(UUID.Zero, false, "A group with the same name already exists."); |
725 | return UUID.Zero; | 725 | return UUID.Zero; |
726 | } | 726 | } |
727 | // is there is a money module present ? | 727 | // is there is a money module present ? |
728 | IMoneyModule money=remoteClient.Scene.RequestModuleInterface<IMoneyModule>(); | 728 | IMoneyModule money=remoteClient.Scene.RequestModuleInterface<IMoneyModule>(); |
729 | if (money != null) | 729 | if (money != null) |
730 | { | 730 | { |
731 | // do the transaction, that is if the agent has got sufficient funds | 731 | // do the transaction, that is if the agent has got sufficient funds |
732 | if (!money.GroupCreationCovered(remoteClient)) { | 732 | if (!money.GroupCreationCovered(remoteClient)) { |
733 | remoteClient.SendCreateGroupReply(UUID.Zero, false, "You have got issuficient funds to create a group."); | 733 | remoteClient.SendCreateGroupReply(UUID.Zero, false, "You have got issuficient funds to create a group."); |
734 | return UUID.Zero; | 734 | return UUID.Zero; |
735 | } | 735 | } |
736 | money.ApplyGroupCreationCharge(remoteClient.AgentId); | 736 | money.ApplyGroupCreationCharge(remoteClient.AgentId); |
737 | } | 737 | } |
738 | UUID groupID = m_groupData.CreateGroup(grID, name, charter, showInList, insigniaID, membershipFee, openEnrollment, allowPublish, maturePublish, remoteClient.AgentId); | 738 | UUID groupID = m_groupData.CreateGroup(grID, name, charter, showInList, insigniaID, membershipFee, openEnrollment, allowPublish, maturePublish, remoteClient.AgentId); |
739 | 739 | ||
740 | remoteClient.SendCreateGroupReply(groupID, true, "Group created successfullly"); | 740 | remoteClient.SendCreateGroupReply(groupID, true, "Group created successfullly"); |
@@ -743,7 +743,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
743 | SendAgentGroupDataUpdate(remoteClient, remoteClient.AgentId); | 743 | SendAgentGroupDataUpdate(remoteClient, remoteClient.AgentId); |
744 | 744 | ||
745 | return groupID; | 745 | return groupID; |
746 | |||
747 | } | 746 | } |
748 | 747 | ||
749 | public GroupNoticeData[] GroupNoticesListRequest(IClientAPI remoteClient, UUID groupID) | 748 | public GroupNoticeData[] GroupNoticesListRequest(IClientAPI remoteClient, UUID groupID) |