diff options
| author | 2021-05-09 22:45:40 +0100 | |
|---|---|---|
| committer | 2021-05-10 01:46:51 +0100 | |
| commit | ecabf153d01b4cb48944155a638e1cf4c1d80d98 (patch) | |
| tree | 8a1b2773847c0a9bf6ffefff2ae1b8ef4ff95df5 /src/modules/m_rline.cpp | |
| parent | Switch Channel::ChanModes to use the channel mode map. (diff) | |
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.
Diffstat (limited to 'src/modules/m_rline.cpp')
| -rw-r--r-- | src/modules/m_rline.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
