From 1b356e5a8900b727588ce72a64e22a300e828016 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 24 Jul 2020 05:04:11 +0100 Subject: Move the property string from cmd_modules to Module & show on load. --- src/modules.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 525243c5c..f1d5de01f 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -63,6 +63,20 @@ Module::~Module() { } +std::string Module::GetPropertyString() const +{ + // D = VF_CORE ("default") + // V = VF_VENDOR + // C = VF_COMMON + // O = VF_OPTCOMMON + std::string propstr("DVCO"); + size_t pos = 0; + for (int mult = VF_CORE; mult <= VF_OPTCOMMON; mult *= 2, ++pos) + if (!(this->properties & mult)) + propstr[pos] = tolower(propstr[pos]); + return propstr; +} + void Module::DetachEvent(Implementation i) { ServerInstance->Modules.Detach(i, this); -- cgit v1.3.1-10-gc9f91