Fixed some stuff
This commit is contained in:
parent
8e4d52ddd2
commit
824aec6322
@ -113,8 +113,7 @@ namespace ts::config {
|
|||||||
|
|
||||||
__attribute__((always_inline)) inline std::string default_version() { return strobf("TeaSpeak ").string() + build::version()->string(true); }
|
__attribute__((always_inline)) inline std::string default_version() { return strobf("TeaSpeak ").string() + build::version()->string(true); }
|
||||||
__attribute__((always_inline)) inline bool check_server_version_with_license() {
|
__attribute__((always_inline)) inline bool check_server_version_with_license() {
|
||||||
auto currentVersion = config::server::default_version();
|
return default_version() == DefaultServerVersion || (license->isPremium() && license->isValid());
|
||||||
return currentVersion == DefaultServerVersion || (license->isPremium() && license->isValid());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ bool ConnectedClient::notifyClientLeftView(
|
|||||||
std::shared_ptr<ConnectedClient> invoker,
|
std::shared_ptr<ConnectedClient> invoker,
|
||||||
bool lock_channel_tree) {
|
bool lock_channel_tree) {
|
||||||
assert(!lock_channel_tree); /* not supported yet! */
|
assert(!lock_channel_tree); /* not supported yet! */
|
||||||
assert(client && client != this && client->getClientId() != 0);
|
assert(client == this || (client && client->getClientId() != 0));
|
||||||
assert(client->currentChannel || &*client == this);
|
assert(client->currentChannel || &*client == this);
|
||||||
|
|
||||||
if(client != this) {
|
if(client != this) {
|
||||||
|
Loading…
Reference in New Issue
Block a user