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 bool check_server_version_with_license() {
|
||||
auto currentVersion = config::server::default_version();
|
||||
return currentVersion == DefaultServerVersion || (license->isPremium() && license->isValid());
|
||||
return default_version() == DefaultServerVersion || (license->isPremium() && license->isValid());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -381,7 +381,7 @@ bool ConnectedClient::notifyClientLeftView(
|
||||
std::shared_ptr<ConnectedClient> invoker,
|
||||
bool lock_channel_tree) {
|
||||
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);
|
||||
|
||||
if(client != this) {
|
||||
|
Loading…
Reference in New Issue
Block a user