summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-19 22:43:31 +0100
committerSadie Powell <sadie@witchery.services>2024-06-19 22:45:43 +0100
commit60aeb2a71a788670ff06f4271949118cb2330c96 (patch)
tree19236e976aafd73ff13695031e3742d057805ee6 /modules
parent54ea63df664fe523e39cb7705ee36d5a4eb8ce88 (diff)
Silently ignore some Atheme metadata that we know we can't import.
Diffstat (limited to 'modules')
-rw-r--r--modules/database/db_atheme.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/database/db_atheme.cpp b/modules/database/db_atheme.cpp
index 9fc66ba16..fa103f3f6 100644
--- a/modules/database/db_atheme.cpp
+++ b/modules/database/db_atheme.cpp
@@ -635,7 +635,7 @@ private:
}
if (flags != "+")
- Log(this) << "Unable to convert channel access flags " << flags << " for " << ci->name;
+ Log(this) << "Unable to convert channel access flags " << flags << " for " << mask << " on " << ci->name;
return true;
}
@@ -771,6 +771,12 @@ private:
return true;
}
+ bool HandleIgnoreMetadata(const Anope::string &target, const Anope::string &key, const Anope::string &value)
+ {
+ Log(LOG_DEBUG_3) << "Intentionally ignoring Atheme database metadata for " << target << ": " << key << " = " << value;
+ return true;
+ }
+
bool HandleMC(AthemeRow &row)
{
// MC <channel> <regtime> <used> <flags> <mlock-on> <mlock-off> <mlock-limit> [<mlock-key>]
@@ -927,6 +933,8 @@ private:
ci->Extend<bool>("BS_FANTASY");
else if (key == "private:botserv:no-bot")
ci->Extend<bool>("BS_NOBOT");
+ else if (key == "private:channelts")
+ return HandleIgnoreMetadata(ci->name, key, value);
else if (key == "private:close:closer")
data->suspend_by = value;
else if (key == "private:close:reason")
@@ -961,6 +969,8 @@ private:
data->info_adder = value;
else if (key == "private:mark:timestamp")
data->info_ts = Anope::Convert<time_t>(value, 0);
+ else if (key == "private:templates")
+ return HandleIgnoreMetadata(ci->name, key, value);
else if (key == "private:topic:setter")
ci->last_topic_setter = value;
else if (key == "private:topic:text")
@@ -1056,6 +1066,12 @@ private:
data->last_mask = value;
else if (key == "private:lastquit:message")
data->last_quit = value;
+ else if (key == "private:loginfail:failnum")
+ return HandleIgnoreMetadata(nc->display, key, value);
+ else if (key == "private:loginfail:lastfailaddr")
+ return HandleIgnoreMetadata(nc->display, key, value);
+ else if (key == "private:loginfail:lastfailtime")
+ return HandleIgnoreMetadata(nc->display, key, value);
else if (key == "private:mark:reason")
data->info_message = value;
else if (key == "private:mark:setter")