summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-02-14 01:24:29 -0500
committerAdam <Adam@anope.org>2013-02-14 01:24:29 -0500
commitf6ef70690903572537bf9c0254d864e840a45202 (patch)
tree9b0bb2870b0880243a15d8de2902603ebd505d9f
parent7656c25e38529013e53bd9e95a3060d3baf1f8f2 (diff)
Magiobiwan is silly
-rw-r--r--modules/database/db_sql_live.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp
index 03de09294..9a769a35c 100644
--- a/modules/database/db_sql_live.cpp
+++ b/modules/database/db_sql_live.cpp
@@ -155,8 +155,10 @@ class DBMySQL : public Module, public Pipe
return;
Serialize::Type *s_type = obj->GetSerializableType();
if (s_type)
+ {
this->RunQuery("DELETE FROM `" + this->prefix + s_type->GetName() + "` WHERE `id` = " + stringify(obj->id));
- s_type->objects.erase(obj->id);
+ s_type->objects.erase(obj->id);
+ }
this->updated_items.erase(obj);
}