Fixed a query rename bug

This commit is contained in:
WolverinDEV 2021-05-26 11:49:07 +02:00
parent b155bf8d5f
commit 9f03f33a23

View File

@ -136,7 +136,7 @@ void BasicChannel::updateChannelType(std::vector<property::ChannelProperties> &p
}
bool BasicChannel::verify_password(const std::optional<std::string> &password, bool password_hashed) {
if(!this->properties()[property::CHANNEL_FLAG_PASSWORD].as_unchecked<bool>()) {
if(!this->properties()[property::CHANNEL_FLAG_PASSWORD].as_or<bool>(false)) {
return true;
}