mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Make opustreshold and channelnestinglimit accept zero values in setLiveConf.
This commit is contained in:
parent
a13bb16557
commit
ce83353dbd
@ -509,9 +509,9 @@ void Server::setLiveConf(const QString &key, const QString &value) {
|
||||
else if (key == "suggestpushtotalk")
|
||||
qvSuggestPushToTalk = ! v.isNull() ? (v.isEmpty() ? QVariant() : v) : Meta::mp.qvSuggestPushToTalk;
|
||||
else if (key == "opusthreshold")
|
||||
iOpusThreshold = i ? i : Meta::mp.iOpusThreshold;
|
||||
iOpusThreshold = (i >= 0) ? qBound(0, i, 100) : Meta::mp.iOpusThreshold;
|
||||
else if (key =="channelnestinglimit")
|
||||
iChannelNestingLimit = i ? i : Meta::mp.iChannelNestingLimit;
|
||||
iChannelNestingLimit = (i >= 0) ? i : Meta::mp.iChannelNestingLimit;
|
||||
}
|
||||
|
||||
#ifdef USE_BONJOUR
|
||||
|
||||
Loading…
Reference in New Issue
Block a user