summaryrefslogtreecommitdiff
path: root/modules/fantasy.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-11-11 16:46:56 +0000
committerSadie Powell <sadie@witchery.services>2024-11-11 16:46:56 +0000
commit96ccfe4cbe9948206ac2d6854778f9a268d2476f (patch)
tree1e2059a204088051b0155b58de56bacaa2bfd58e /modules/fantasy.cpp
parentee160842b3ccab37f005c16a8657781e0e0412fd (diff)
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.
Diffstat (limited to 'modules/fantasy.cpp')
-rw-r--r--modules/fantasy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fantasy.cpp b/modules/fantasy.cpp
index c4dfc957e..c815781bf 100644
--- a/modules/fantasy.cpp
+++ b/modules/fantasy.cpp
@@ -167,7 +167,7 @@ class Fantasy : public Module
}
// Command requires registered users only
- if (!cmd->AllowUnregistered() && !u->Account())
+ if (!cmd->AllowUnregistered() && !u->IsIdentified())
return;
if (params.size() < cmd->min_params)