mirror of
https://github.com/anope/anope.git
synced 2026-07-07 04:43:13 +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:
@@ -226,7 +226,7 @@ class MyXMLRPCEvent : public XMLRPCEvent
|
||||
request.reply("ip", u->ip.addr());
|
||||
request.reply("timestamp", stringify(u->timestamp));
|
||||
request.reply("signon", stringify(u->signon));
|
||||
if (u->Account())
|
||||
if (u->IsIdentified())
|
||||
{
|
||||
request.reply("account", iface->Sanitize(u->Account()->display));
|
||||
if (u->Account()->o)
|
||||
|
||||
Reference in New Issue
Block a user