From 96ccfe4cbe9948206ac2d6854778f9a268d2476f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 11 Nov 2024 16:46:56 +0000 Subject: 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. --- modules/commands/greet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/greet.cpp') diff --git a/modules/commands/greet.cpp b/modules/commands/greet.cpp index 7e1b5ce75..963a28ffd 100644 --- a/modules/commands/greet.cpp +++ b/modules/commands/greet.cpp @@ -188,7 +188,7 @@ class Greet : public Module * to has synced, or we'll get greet-floods when the net * recovers from a netsplit. -GD */ - if (!c->ci || !c->ci->bi || !user->server->IsSynced() || !user->Account()) + if (!c->ci || !c->ci->bi || !user->server->IsSynced() || !user->IsIdentified()) return; Anope::string *greet = ns_greet.Get(user->Account()); -- cgit