diff --git a/src/murmur/Server.cpp b/src/murmur/Server.cpp index 2f44b559a..1f5d70f30 100644 --- a/src/murmur/Server.cpp +++ b/src/murmur/Server.cpp @@ -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