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_cban.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/m_cban.cpp') diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 70c01109d..6afba34e4 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -211,9 +211,11 @@ class ModuleCBan : public Module, public Stats::EventListener return MOD_RES_PASSTHRU; } - void GetLinkData(std::string& data) override + void GetLinkData(LinkData& data, std::string& compatdata) override { - data = "glob"; + // It is assumed that if a server can speak the v4 protocol it can also + // handle glob patterns for channel bans. + compatdata.assign("glob"); } }; -- cgit v1.3.1-10-gc9f91