- if (!ucr->ips.empty())
- if (!u->GetProperty().ips.Set(ucr->ips.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->alwaysOnline.empty())
- if (!u->GetProperty().alwaysOnline.Set(ucr->alwaysOnline.const_data(),
- &currAdmin, login, store))
- res = -1;
-
- if (!ucr->address.empty())
- if (!u->GetProperty().address.Set(ucr->address.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->creditExpire.empty())
- if (!u->GetProperty().creditExpire.Set(ucr->creditExpire.const_data(),
- &currAdmin, login, store))
- res = -1;
-
- if (!ucr->credit.empty())
- if (!u->GetProperty().credit.Set(ucr->credit.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!usr->freeMb.empty())
- if (!u->GetProperty().freeMb.Set(usr->freeMb.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->disabled.empty())
- if (!u->GetProperty().disabled.Set(ucr->disabled.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->disabledDetailStat.empty())
- if (!u->GetProperty().disabledDetailStat.Set(ucr->disabledDetailStat.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->email.empty())
- if (!u->GetProperty().email.Set(ucr->email.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->group.empty())
- if (!u->GetProperty().group.Set(ucr->group.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->note.empty())
- if (!u->GetProperty().note.Set(ucr->note.const_data(), &currAdmin, login, store))
- res = -1;
-
- std::vector<USER_PROPERTY_LOGGED<std::string> *> userdata;
- userdata.push_back(u->GetProperty().userdata0.GetPointer());
- userdata.push_back(u->GetProperty().userdata1.GetPointer());
- userdata.push_back(u->GetProperty().userdata2.GetPointer());
- userdata.push_back(u->GetProperty().userdata3.GetPointer());
- userdata.push_back(u->GetProperty().userdata4.GetPointer());
- userdata.push_back(u->GetProperty().userdata5.GetPointer());
- userdata.push_back(u->GetProperty().userdata6.GetPointer());
- userdata.push_back(u->GetProperty().userdata7.GetPointer());
- userdata.push_back(u->GetProperty().userdata8.GetPointer());
- userdata.push_back(u->GetProperty().userdata9.GetPointer());
-
- for (int i = 0; i < (int)userdata.size(); i++)
- if (!ucr->userdata[i].empty())
- if(!userdata[i]->Set(ucr->userdata[i].const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->passive.empty())
- if (!u->GetProperty().passive.Set(ucr->passive.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->password.empty())
- if (!u->GetProperty().password.Set(ucr->password.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->phone.empty())
- if (!u->GetProperty().phone.Set(ucr->phone.const_data(), &currAdmin, login, store))
- res = -1;
-
- if (!ucr->realName.empty())
- if (!u->GetProperty().realName.Set(ucr->realName.const_data(), &currAdmin, login, store))
- res = -1;
-
-
- if (!usr->cash.empty())
- if (cashMustBeAdded)
- {
- if (!u->GetProperty().cash.Set(usr->cash.const_data() + u->GetProperty().cash,
- &currAdmin,
- login,
- store,
- cashMsg))
- res = -1;
- else
- if (!u->GetProperty().cash.Set(usr->cash.const_data(), &currAdmin, login, store, cashMsg))
- res = -1;
- }