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.

(file #15341)
    _______________________________________________________

Additional Item Attachment:

File name: trunk-S2_4-fcdb-lua-output.diff Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19457>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to