diff options
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r-- | src/modules/m_cloaking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 75dc889f9..ad4b958c5 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -350,12 +350,12 @@ class ModuleCloaking : public Module suffix = tag->getString("suffix", ".IP"); std::string modestr = tag->getString("mode"); - if (modestr == "half") + if (stdalgo::string::equalsci(modestr, "half")) { mode = MODE_HALF_CLOAK; domainparts = tag->getUInt("domainparts", 3, 1, 10); } - else if (modestr == "full") + else if (stdalgo::string::equalsci(modestr, "full")) mode = MODE_OPAQUE; else throw ModuleException("Bad value for <cloak:mode>; must be half or full"); |