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_cban.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_cban.cpp')
| -rw-r--r-- | src/modules/m_cban.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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"); } }; |
