diff options
| author | 2022-12-20 10:51:37 +0000 | |
|---|---|---|
| committer | 2022-12-20 10:51:57 +0000 | |
| commit | 2b33c3c303a252744275f3d4fee84e7e76f16976 (patch) | |
| tree | 75393cf5a44159e1919c30228b7717033c6c4b56 /src/modules | |
| parent | Move {From,To}Network from StringExtItem to SimpleExtItem. (diff) | |
Don't automatically fall back to ToNetwork from ToInternal.
Only one thing used this and its really unclear especially when
SimpleExtItem does the opposite.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 99f51beb4..93df069aa 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -64,6 +64,11 @@ public: Delete(user, UnsetRaw(user)); } + std::string ToInternal(const Extensible* container, void* item) const noexcept override + { + return ToNetwork(container, item); + } + std::string ToNetwork(const Extensible* container, void* item) const noexcept override { const ssl_cert* cert = static_cast<ssl_cert*>(item); @@ -84,6 +89,11 @@ public: return value.str(); } + void FromInternal(Extensible* container, const std::string& value) noexcept override + { + FromNetwork(container, value); + } + void FromNetwork(Extensible* container, const std::string& value) noexcept override { if (container->extype != this->extype) |
