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

melanie
Kevin Cozens 2017-01-06 16:58:49 -05:00
parent 86d057852d
commit 5bc869391a
1 changed files with 2 additions and 2 deletions

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");