Merged with master
This commit is contained in:
@@ -2225,7 +2225,7 @@ CommandResult ConnectedClient::handleCommandClientPoke(Command &cmd) {
|
||||
auto client = this->server->findClient(cmd["clid"].as<ClientId>());
|
||||
if (!client) return {findError("client_invalid_id"), "invalid client id"};
|
||||
if (client->getType() == CLIENT_MUSIC) return {findError("client_invalid_type"), "You cant poke a music bot!"};
|
||||
CACHED_PERM_CHECK(permission::i_client_poke_power, client->permissionValue(permission::PERMTEST_ORDERED, permission::i_client_needed_poke_power, client->currentChannel));
|
||||
CACHED_PERM_CHECK(permission::i_client_poke_power, client->permissionValue(permission::PERMTEST_ORDERED, permission::i_client_needed_poke_power, client->currentChannel), false);
|
||||
|
||||
client->notifyClientPoke(_this.lock(), cmd["msg"]);
|
||||
return CommandResult::Success;
|
||||
@@ -3320,8 +3320,12 @@ CommandResult ConnectedClient::handleCommandFTGetFileList(Command &cmd) {
|
||||
}
|
||||
|
||||
if (fileList[0].has("name")) {
|
||||
this->sendCommand(fileList);
|
||||
if (this->getExternalType() == CLIENT_TEAMSPEAK) this->sendCommand(fileListFinished);
|
||||
if(dynamic_cast<VoiceClient*>(this)) {
|
||||
dynamic_cast<VoiceClient*>(this)->sendCommand0(fileList, false, true); /* We need to process this directly else the order could get shuffeled up! */
|
||||
this->sendCommand(fileListFinished);
|
||||
} else {
|
||||
this->sendCommand(fileList);
|
||||
}
|
||||
return CommandResult::Success;
|
||||
} else {
|
||||
return {findError("database_empty_result"), "empty"};
|
||||
|
||||
Reference in New Issue
Block a user