void ban_from_group(const uuid_vec_t& ids) { if (LLFloaterGroupPicker* widget = LLFloaterGroupPicker::showInstance(ids.front())) // It'd be cool if LLSD could be formed from uuid_vec_t { widget->center(); widget->setPowersMask(GP_GROUP_BAN_ACCESS); widget->removeNoneOption(); widget->setSelectGroupCallback(boost::bind(callback_ban_from_group, _1, ids)); } }
void LLAvatarActions::inviteToGroup(const uuid_vec_t& ids) { LLFloaterGroupPicker* widget = LLFloaterGroupPicker::showInstance(LLSD(ids.front())); if (widget) { widget->center(); widget->setPowersMask(GP_MEMBER_INVITE); widget->removeNoneOption(); widget->setSelectGroupCallback(boost::bind(callback_invite_to_group, _1, ids)); } }