diff options
Diffstat (limited to 'db/query.cpp')
-rw-r--r-- | db/query.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/query.cpp b/db/query.cpp index 981cb91bf58..be66b77bc28 100644 --- a/db/query.cpp +++ b/db/query.cpp @@ -400,6 +400,7 @@ bool dbEval(JSObj& cmd, JSObjBuilder& result) { }
Scope s;
+ s.setString("$client", client->name.c_str());
Element args = cmd.findElement("args");
if( args.type() == Array ) {
JSObj eo = args.embeddedObject();
|