X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_uhnames.cpp;h=3bf63a3553ee4159061bdb2a7a82997006be45f0;hb=9cf381330eab69d7e5bf26684d1ec8075aee60a2;hp=7f9975a55fe2fd22873c3f246bc80acd2771cd32;hpb=e57d1b19ff4823b7885eb7f4d3b37c84d2edca0e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 7f9975a55..3bf63a355 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -39,12 +39,15 @@ class ModuleUHNames Version GetVersion() CXX11_OVERRIDE { - return Version("Provides the UHNAMES facility", VF_VENDOR); + return Version("Provides the UHNAMES (CAP userhost-in-names) capability", VF_VENDOR); } void On005Numeric(std::map& tokens) CXX11_OVERRIDE { - tokens["UHNAMES"]; + // The legacy PROTOCTL system is a wrapper around the cap. + dynamic_reference_nocheck capmanager(this, "capmanager"); + if (capmanager) + tokens["UHNAMES"]; } ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) CXX11_OVERRIDE