- std::string Result;
- if (Data.wanted.size() > 0)
- Result = irc::stringjoiner(" ", Data.wanted, 0, Data.wanted.size() - 1).GetJoined();
- else
- Result = "";
-
- user->WriteServ("CAP * %s :%s", subcommand.c_str(), Result.c_str());
+ std::string Result = irc::stringjoiner(Data.wanted).GetJoined();
+ user->WriteServ("CAP %s %s :%s", user->nick.c_str(), subcommand.c_str(), Result.c_str());