mirror of
https://github.com/anope/anope.git
synced 2026-06-27 23:56:39 +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:
@@ -46,7 +46,7 @@ class SQLOperResult : public SQL::Interface
|
||||
{
|
||||
SQLOperResultDeleter d(this);
|
||||
|
||||
if (!user || !user->Account())
|
||||
if (!user || !user->IsIdentified())
|
||||
return;
|
||||
|
||||
if (r.Rows() == 0)
|
||||
|
||||
Reference in New Issue
Block a user