Update of bug #19457 (project freeciv):
Status: None => Ready For Test
Assigned to: None => jtn
Follow-up Comment #1:
Fixed this via another bug: if a client initiated "/fcdb lua", the output of
(say) "/fcdb log log.normal(fc_version())" was not getting back to the client,
unlike the equivalent "/lua cmd".
I made script_fcdb_do_string() look like script_server_do_string(), which
temporary replaces the Lua "output_fct" with one that routes to cmd_reply()
for command, and puts back NULL (which routes to the log system) afterwards.
(Previously, cmd_reply() was being used for all output, but "caller" wasn't
being set so it didn't even go to the client when it should have.) Two birds
with one stone.
Result: the "Call to 'database_init'" stuff is still there, but only in
log_verbose, needing extra -d to see it, which seems tolerable.
Additional Item Attachment:
File name: trunk-S2_4-fcdb-lua-output.diff Size:2 KB
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list