mirror of
https://github.com/anope/anope.git
synced 2026-06-29 17:56:37 +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:
@@ -537,7 +537,7 @@ namespace UnrealExtban
|
||||
const Anope::string &mask = e->GetMask();
|
||||
Anope::string real_mask = mask.substr(3);
|
||||
|
||||
return u->Account() && Anope::Match(u->Account()->display, real_mask);
|
||||
return u->IsIdentified() && Anope::Match(u->Account()->display, real_mask);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user