- CapData Data;
-
- Data.type = subcommand;
- Data.user = user;
- Data.creator = this->creator;
-
- user->Extend("CAP_REGHOLD");
- Event event((char*) &Data, this->creator, subcommand == "LS" ? "cap_ls" : "cap_list");
- event.Send(this->ServerInstance);
+ CapEvent Data(creator, user, subcommand == "LS" ? CapEvent::CAPEVENT_LS : CapEvent::CAPEVENT_LIST);