mirror of
https://github.com/anope/anope.git
synced 2026-07-01 19:46:38 +02:00
Store hashes of the last commit instead of the last commit
This commit is contained in:
@@ -71,6 +71,15 @@ class LoadData : public Serialize::Data
|
||||
keys.insert(it->first);
|
||||
return keys;
|
||||
}
|
||||
|
||||
size_t Hash() const anope_override
|
||||
{
|
||||
size_t hash = 0;
|
||||
for (std::map<Anope::string, Anope::string>::const_iterator it = this->data.begin(), it_end = this->data.end(); it != it_end; ++it)
|
||||
if (!it->second.empty())
|
||||
hash ^= Anope::hash_cs()(it->second);
|
||||
return hash;
|
||||
}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user