From f765ae5dbf551fcce62d29ba3eaebde0af54e73b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 30 Sep 2022 20:37:37 +0100 Subject: Enforce network-wide on the 1206 protocol. --- src/modules/m_sethost.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/m_sethost.cpp') diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 6f563a0d0..a881f8069 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -93,6 +93,13 @@ public: } std::swap(newhostmap, cmd.hostmap); } + + void GetLinkData(Module::LinkData& data, std::string& compatdata) override + { + for (size_t i = 0; i < cmd.hostmap.size(); ++i) + if (cmd.hostmap[i]) + data["hostchars"].push_back(static_cast(i)); + } }; MODULE_INIT(ModuleSetHost) -- cgit v1.3.1-10-gc9f91