Only apply group creation fee > 0 and pass group name when applying fee

This commit is contained in:
Kevin Cozens
2017-01-06 16:58:49 -05:00
parent 86d057852d
commit 5bc869391a

View File

@@ -781,8 +781,8 @@ namespace OpenSim.Groups
if (groupID != UUID.Zero)
{
if (money != null)
money.ApplyCharge(remoteClient.AgentId, money.GroupCreationCharge, MoneyTransactionType.GroupCreate);
if (money != null && money.GroupCreationCharge > 0)
money.ApplyCharge(remoteClient.AgentId, money.GroupCreationCharge, MoneyTransactionType.GroupCreate, name);
remoteClient.SendCreateGroupReply(groupID, true, "Group created successfully");