From ecabf153d01b4cb48944155a638e1cf4c1d80d98 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 9 May 2021 22:45:40 +0100 Subject: Add a new map-based method for building link data. The new link data is not currently used but will be in the near future. --- src/modules/m_rline.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/m_rline.cpp') diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index a59eb00b0..aa7b94e8f 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -238,10 +238,12 @@ class ModuleRLine ServerInstance->XLines->UnregisterFactory(&f); } - void GetLinkData(std::string& data) override + void GetLinkData(LinkData& data, std::string& compatdata) override { if (rxfactory) - data = rxfactory->name; + data["regex"] = compatdata = rxfactory->name; + else + data["regex"] = "broken"; } ModResult OnUserRegister(LocalUser* user) override -- cgit v1.3.1-10-gc9f91