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.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/modules.cpp') 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; } -- cgit v1.3.1-10-gc9f91