X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Fmodules%2Fcap.h;h=664120d39de1014a7e2399954bdf7325a4d30700;hb=ebe3e3f3cfef79e5b92b4c1d8fc9913dac4ddf43;hp=9dacdc200297f1d7b78c3108a3db7e78670818bd;hpb=6cfabb0064cab52bbbab59974e53dc0fa1954da7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules/cap.h b/include/modules/cap.h index 9dacdc200..664120d39 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -304,6 +304,12 @@ namespace Cap { } + /** Retrieves the underlying cap. */ + operator const Cap::Capability*() const + { + return ref ? *ref : NULL; + } + /** Check whether a user has the referenced capability turned on. * @param user User to check * @return True if the user is using the referenced capability, false otherwise