Shipping libnice on board

This commit is contained in:
WolverinDEV
2019-11-11 21:37:28 +01:00
parent 7cf8f6c2c3
commit 84c1f94f30
7 changed files with 39 additions and 15 deletions
+5 -2
View File
@@ -701,10 +701,13 @@ void ConnectedClient::sendChannelDescription(const std::shared_ptr<BasicChannel>
if(!this->channels->channel_visible(channel)) return;
Command cmd("notifychanneledited");
auto limit = this->getType() == CLIENT_TEAMSPEAK ? 8192 : 131130;
auto description = channel->properties()[property::CHANNEL_DESCRIPTION].as<std::string>();
Command cmd("notifychanneledited");
cmd["cid"] = channel->channelId();
cmd["reasonid"] = 9;
cmd["channel_description"] = channel->properties()[property::CHANNEL_DESCRIPTION].as<std::string>();
cmd["channel_description"] = description.size() > limit ? description.substr(0, limit) : description;
this->sendCommand(cmd, true);
}