diff options
author | Sadie Powell <sadie@witchery.services> | 2024-11-11 16:46:56 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-11-11 16:46:56 +0000 |
commit | 96ccfe4cbe9948206ac2d6854778f9a268d2476f (patch) | |
tree | 1e2059a204088051b0155b58de56bacaa2bfd58e /modules/commands/ns_identify.cpp | |
parent | ee160842b3ccab37f005c16a8657781e0e0412fd (diff) |
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.
Diffstat (limited to 'modules/commands/ns_identify.cpp')
-rw-r--r-- | modules/commands/ns_identify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_identify.cpp b/modules/commands/ns_identify.cpp index e0d0f601a..545001602 100644 --- a/modules/commands/ns_identify.cpp +++ b/modules/commands/ns_identify.cpp @@ -82,7 +82,7 @@ class CommandNSIdentify : public Command return; } - if (u->Account() && na && u->Account() == na->nc) + if (u->IsIdentified() && na && u->Account() == na->nc) { source.Reply(_("You are already identified.")); return; |