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.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.cpp')
| -rw-r--r-- | src/modules.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index d66d2e8ae..dc830cc6a 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -60,6 +60,14 @@ Cullable::Result Module::Cull() return Cullable::Cull(); } +void Module::CompareLinkData(const LinkData& otherdata, LinkDataDiff& diffs) +{ + std::string unused; + LinkData data; + this->GetLinkData(data, unused); + stdalgo::map::difference(data, otherdata, diffs); +} + std::string Module::GetPropertyString() const { // D = VF_CORE ("default") @@ -79,7 +87,7 @@ void Module::DetachEvent(Implementation i) ServerInstance->Modules.Detach(i, this); } -void Module::GetLinkData(std::string& out) { } +void Module::GetLinkData(LinkData&, std::string&) { } void Module::Prioritize() { } void Module::ReadConfig(ConfigStatus& status) { } ModResult Module::OnSendSnotice(char &snomask, std::string &type, const std::string &message) { DetachEvent(I_OnSendSnotice); return MOD_RES_PASSTHRU; } |
