void LLGroupActions::ejectFromGroup(const LLUUID& idGroup, const LLUUID& idAgent) { if (!canEjectFromGroup(idGroup, idAgent)) return; uuid_vec_t idAgents; idAgents.push_back(idAgent); LLGroupMgr::instance().sendGroupMemberEjects(idGroup, idAgents); }
bool LLGroupActions::callbackEject(const LLSD& notification, const LLSD& response) { S32 option = LLNotificationsUtil::getSelectedOption(notification, response); if (2 == option) // Cancel button { return false; } if (0 == option) // Eject button { LLUUID idAgent = notification["payload"]["avatar_id"].asUUID(); LLUUID idGroup = notification["payload"]["group_id"].asUUID(); if (!canEjectFromGroup(idGroup, idAgent)) return false; uuid_vec_t idAgents; idAgents.push_back(idAgent); LLGroupMgr::instance().sendGroupMemberEjects(idGroup, idAgents); } return false; // </FS:CR> }