eggdrop
eggdrop copied to clipboard
Fix things not working when there is a bind log
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:
-
.tcldcc 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