mirror of
https://github.com/anope/anope.git
synced 2026-07-06 20:43:12 +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:
@@ -699,7 +699,7 @@ namespace InspIRCdExtban
|
||||
{
|
||||
const Anope::string &mask = e->GetMask();
|
||||
Anope::string real_mask = mask.substr(2);
|
||||
return !u->Account() && Entry("BAN", real_mask).Matches(u);
|
||||
return !u->IsIdentified() && Entry("BAN", real_mask).Matches(u);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user