Fixed permission notify client disconnect

This commit is contained in:
WolverinDEV 2020-03-04 16:31:03 +01:00
parent e47d38da79
commit 383fab15a6

View File

@ -564,6 +564,11 @@ bool ConnectedClient::notifyClientNeededPermissions() {
cmd[index++]["permvalue"] = value.second.has_value ? value.second.value : 0;
}
if(index == 0) {
cmd[index]["permid"] = permission::i_client_talk_power;
cmd[index++]["permvalue"] = 0;
}
this->sendCommand(cmd);
return true;
}