eggdrop icon indicating copy to clipboard operation
eggdrop copied to clipboard

Fix things not working when there is a bind log

Open DasBrain opened this issue 1 year ago • 0 comments

When there is a bind log, a few things stop working, as they do not expect logging functions to change the Tcl interpreter result.

This fixes those issues by storing the result before triggering the log binds and restoring it after the call.

Things found to be broken:

  • .tcl dcc command (empty result is shown)
  • Tcl errors reported in bind.

And maybe a few more.

Found by: DasBrain Patch by: DasBrain Fixes: bind log, hopefully.

One-line summary: Fix wrong Tcl results when there is a bind log.

Additional description (if needed):

Test cases demonstrating functionality (if applicable): .tcl string cat foo .tcl bind log * +|+ {string cat} .tcl string cat foo

DasBrain avatar Oct 07 '24 12:10 DasBrain