From 1b67b97e93f138245bde795fb769206e9f9f0965 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 6 Oct 2016 14:59:22 -0400 Subject: ns_maxemail: equals_ci for comparing emails --- modules/ns_maxemail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ns_maxemail.cpp b/modules/ns_maxemail.cpp index a3016311a..eb05717a9 100644 --- a/modules/ns_maxemail.cpp +++ b/modules/ns_maxemail.cpp @@ -68,7 +68,7 @@ class NSMaxEmail : public Module Anope::string cleannc = clean ? CleanMail(nc->email) : nc->email; - if (unc != nc && cleanemail == cleannc) + if (unc != nc && cleanemail.equals_ci(cleannc)) ++count; } -- cgit From 095751363dd9d3576ca7b8cfd3b3efbe9ce09bba Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 16 Oct 2016 18:50:22 -0400 Subject: db_sql: don't update objects pending creation as it duplicates it --- modules/database/db_sql.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp index 15501bc5f..12fc8512f 100644 --- a/modules/database/db_sql.cpp +++ b/modules/database/db_sql.cpp @@ -210,6 +210,8 @@ class DBSQL : public Module, public Pipe { if (this->shutting_down || obj->IsTSCached()) return; + if (obj->id == 0) + return; /* object is pending creation */ obj->UpdateTS(); this->updated_items.insert(obj); this->Notify(); -- cgit