diff options
| author | 2019-02-05 00:47:30 +0000 | |
|---|---|---|
| committer | 2019-02-05 00:47:30 +0000 | |
| commit | bfa5fb407e13ad4adb5c062021de50ecd760ed95 (patch) | |
| tree | c573269b1a94fd7e7da27c1b90b05fa60916de23 /src/modules/m_cloaking.cpp | |
| parent | Remove support for the deprecated <power> config tag. (diff) | |
| parent | ModuleManager: use std::flush instead of fflush(stdout). (diff) | |
| download | inspircd++-bfa5fb407e13ad4adb5c062021de50ecd760ed95.tar.gz inspircd++-bfa5fb407e13ad4adb5c062021de50ecd760ed95.tar.bz2 inspircd++-bfa5fb407e13ad4adb5c062021de50ecd760ed95.zip | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_cloaking.cpp')
| -rw-r--r-- | src/modules/m_cloaking.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index bf96216c3..01bdce2ca 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -210,24 +210,24 @@ class ModuleCloaking : public Module { // The position at which we found the last dot. std::string::const_reverse_iterator dotpos; - + // The number of dots we have seen so far. unsigned int seendots = 0; - + for (std::string::const_reverse_iterator iter = host.rbegin(); iter != host.rend(); ++iter) { if (*iter != '.') continue; - + // We have found a dot! dotpos = iter; seendots += 1; - + // Do we have enough segments to stop? if (seendots >= domainparts) break; } - + // We only returns a domain part if more than one label is // present. See above for a full explanation. if (!seendots) @@ -435,7 +435,7 @@ class ModuleCloaking : public Module else if (stdalgo::string::equalsci(mode, "full")) newcloaks.push_back(CloakInfo(MODE_OPAQUE, key, prefix, suffix)); else - throw ModuleException(mode + " is an invalid value for <cloak:mode>; acceptable values are 'half' and 'full', at " + tag->getTagLocation()); + throw ModuleException(mode + " is an invalid value for <cloak:mode>; acceptable values are 'half' and 'full', at " + tag->getTagLocation()); } // The cloak configuration was valid so we can apply it. |
