#include "../client.h" #include "../groups.h" void command_ginfo(Client *c, const Seperator *sep) { Client *target = c; if (c->GetTarget() && c->GetTarget()->IsClient()) { target = c->GetTarget()->CastToClient(); } auto target_group = target->GetGroup(); if (!target_group) { c->Message( Chat::White, fmt::format( "{} not in a group.", ( c == target ? "You are" : fmt::format( "{} ({}) is", target->GetCleanName(), target->GetID() ) ) ).c_str() ); return; } std::string popup_title = fmt::format( "Group Info for {}", c == target ? "Yourself" : fmt::format( "{} ({})", target->GetCleanName(), target->GetID() ) ); std::string popup_text = "
| Group ID | {} | Members | {} | ", target_group->GetID(), target_group->GroupCount() ); popup_text += "||
| Index | "; popup_text += "Name | "; popup_text += "In Zone | "; popup_text += "Assist | "; popup_text += "Puller | "; popup_text += "Tank | "; popup_text += "
| {} | {} | {} | {} | {} | {} |