Shipping libnice on board
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user