mirror of
https://github.com/anope/anope.git
synced 2026-06-26 16:16:39 +02:00
Add Redis database support
This commit is contained in:
@@ -188,7 +188,7 @@ class DBMySQL : public Module, public Pipe
|
||||
if (res.Get(i, "timestamp").empty())
|
||||
{
|
||||
clear_null = true;
|
||||
std::map<unsigned int, Serializable *>::iterator it = obj->objects.find(id);
|
||||
std::map<uint64_t, Serializable *>::iterator it = obj->objects.find(id);
|
||||
if (it != obj->objects.end())
|
||||
delete it->second; // This also removes this object from the map
|
||||
}
|
||||
@@ -200,7 +200,7 @@ class DBMySQL : public Module, public Pipe
|
||||
data[it->first] << it->second;
|
||||
|
||||
Serializable *s = NULL;
|
||||
std::map<unsigned int, Serializable *>::iterator it = obj->objects.find(id);
|
||||
std::map<uint64_t, Serializable *>::iterator it = obj->objects.find(id);
|
||||
if (it != obj->objects.end())
|
||||
s = it->second;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user