mirror of
https://github.com/anope/anope.git
synced 2026-06-29 19:16:38 +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:
+1
-1
@@ -62,7 +62,7 @@ const char *Language::Translate(const char *string)
|
||||
|
||||
const char *Language::Translate(User *u, const char *string)
|
||||
{
|
||||
if (u && u->Account())
|
||||
if (u && u->IsIdentified())
|
||||
return Translate(u->Account(), string);
|
||||
else
|
||||
return Translate("", string);
|
||||
|
||||
Reference in New Issue
Block a user