diff options
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) |