diff options
| author | 2023-01-13 20:43:13 +0000 | |
|---|---|---|
| committer | 2023-01-13 20:50:00 +0000 | |
| commit | 1f4ffdfee959614e3afe7e7daab06a040ca1ac41 (patch) | |
| tree | f49b94d8d59e9d08867501c23b21828a3bb9976b /src/modules/m_spanningtree/capab.cpp | |
| parent | Document the cloak_sha256 <cloak:case> option. (diff) | |
Various improvements to the cloak system.
- Only rewrite cloak => cloaking if the cloak_md5 module is also
loaded.
- Include the cloak method in the link data.
- If 1206 servers are using different cloak methods then ignore
the other data when telling operators about the link failure.
- Clean up the code in a few places.
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 14e90f987..5ae7f5ff0 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -57,7 +57,7 @@ namespace modname.append(name.substr(0, endpos)).append(".so"); // Handle renamed modules. - if (stdalgo::string::equalsci(modname, "m_cloak.so")) + if (stdalgo::string::equalsci(modname, "m_cloak.so") && ServerInstance->Modules.Find("cloak_md5")) modname = "m_cloaking.so"; else if (stdalgo::string::equalsci(modname, "m_realnameban.so")) modname = "m_gecosban.so"; |
