diff --git a/src/BasicChannel.cpp b/src/BasicChannel.cpp index 3273461..a805865 100644 --- a/src/BasicChannel.cpp +++ b/src/BasicChannel.cpp @@ -136,7 +136,7 @@ void BasicChannel::updateChannelType(std::vector &p } bool BasicChannel::verify_password(const std::optional &password, bool password_hashed) { - if(!this->properties()[property::CHANNEL_FLAG_PASSWORD].as_unchecked()) { + if(!this->properties()[property::CHANNEL_FLAG_PASSWORD].as_or(false)) { return true; }