diff --git a/include/ircd/conf.h b/include/ircd/conf.h index 4f7ed5cba..92cc552a5 100644 --- a/include/ircd/conf.h +++ b/include/ircd/conf.h @@ -168,6 +168,16 @@ struct ircd::conf::item return _value; } + explicit operator bool() const + { + return !empty(_value); + } + + bool operator!() const + { + return !static_cast(*this); + } + operator string_view() const { return _value;