aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-07-24 05:04:11 +0100
committerGravatar Sadie Powell2020-07-24 05:05:27 +0100
commit1b356e5a8900b727588ce72a64e22a300e828016 (patch)
treef8c2b97b5821d1eda3355d58035218cf4190e172 /src/modules.cpp
parentBuild regex_posix and regex_re2 on GitHub Actions. (diff)
downloadinspircd++-1b356e5a8900b727588ce72a64e22a300e828016.tar.gz
inspircd++-1b356e5a8900b727588ce72a64e22a300e828016.tar.bz2
inspircd++-1b356e5a8900b727588ce72a64e22a300e828016.zip
Move the property string from cmd_modules to Module & show on load.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp14
1 files changed, 14 insertions, 0 deletions
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);