diff options
| author | 2020-07-24 05:04:11 +0100 | |
|---|---|---|
| committer | 2020-07-24 05:05:27 +0100 | |
| commit | 1b356e5a8900b727588ce72a64e22a300e828016 (patch) | |
| tree | f8c2b97b5821d1eda3355d58035218cf4190e172 /src/modules.cpp | |
| parent | Build regex_posix and regex_re2 on GitHub Actions. (diff) | |
| download | inspircd++-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.cpp | 14 |
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); |
