Fixed the virtual server snapshot port persistance
This commit is contained in:
@@ -20,9 +20,7 @@ using namespace ts;
|
||||
using namespace ts::server;
|
||||
using namespace ts::token;
|
||||
|
||||
extern ts::server::InstanceHandler* serverInstance;
|
||||
|
||||
#define INVOKER(command, invoker) \
|
||||
# define INVOKER(command, invoker) \
|
||||
do { \
|
||||
if(invoker) { \
|
||||
command["invokerid"] = invoker->getClientId(); \
|
||||
|
||||
@@ -714,8 +714,9 @@ command_result ConnectedClient::handleCommandBanAdd(Command &cmd) {
|
||||
return command_result{permission::b_client_ban_create};
|
||||
}
|
||||
|
||||
auto max_ban_time = this->calculate_permission(permission::i_client_ban_max_bantime, this->getClientDatabaseId(), this->getType(), 0);
|
||||
if(!max_ban_time.has_value) return command_result{permission::i_client_ban_max_bantime};
|
||||
auto max_ban_time = this->calculate_permission(permission::i_client_ban_max_bantime, this->getClientDatabaseId());
|
||||
if(!max_ban_time.has_value)
|
||||
return command_result{permission::i_client_ban_max_bantime};
|
||||
if (!max_ban_time.has_infinite_power()) {
|
||||
if (max_ban_time.value < time)
|
||||
return command_result{permission::i_client_ban_max_bantime};
|
||||
|
||||
Reference in New Issue
Block a user