1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 08:03:13 +02:00

Fix using User::Account where User::IsIdentified should be used.

The former causes a dereference which cause a database update. This
is not good for performance with db_sql_live on bigger networks.
This commit is contained in:
Sadie Powell
2024-11-11 16:46:56 +00:00
parent ee160842b3
commit 96ccfe4cbe
20 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class DNSBLResolver : public Request
if (!blacklist.replies.empty() && !reply)
return;
if (reply && reply->allow_account && user->Account())
if (reply && reply->allow_account && user->IsIdentified())
return;
Anope::string reason = this->blacklist.reason, addr = user->ip.addr();