A lot of updates
This commit is contained in:
@@ -835,7 +835,7 @@ bool ConnectedClient::handleCommandFull(Command& cmd, bool disconnectOnFail) {
|
||||
this->notifyError(result, cmd["return_code"].size() > 0 ? cmd["return_code"].first().as<std::string>() : "");
|
||||
|
||||
if(result.error_code() != error::ok && this->state == ConnectionState::INIT_HIGH)
|
||||
this->closeConnection(system_clock::now()); //Disconnect now
|
||||
this->close_connection(system_clock::now()); //Disconnect now
|
||||
|
||||
for (const auto& handler : postCommandHandler)
|
||||
handler();
|
||||
@@ -931,8 +931,7 @@ bool ConnectedClient::update_cached_permissions() {
|
||||
for(const auto& entry : values) {
|
||||
if(entry.first == permission::i_client_whisper_power)
|
||||
this->cpmerission_whisper_power = entry.second;
|
||||
else
|
||||
if(entry.first == permission::i_client_needed_whisper_power)
|
||||
else if(entry.first == permission::i_client_needed_whisper_power)
|
||||
this->cpmerission_needed_whisper_power = entry.second;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user