• exec/chat_llm_irc.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Nov 21 13:22:03 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/30f529f82ad9da24411d0351
    Modified Files:
    exec/chat_llm_irc.js
    Log Message:
    chat_llm_irc: register the shutdown handler only when the bot runs

    js.on_exit("shutdown()") was registered whenever the file was loaded,
    including by a script that sets CHAT_LLM_IRC_NO_MAIN to use its helpers
    without starting the bot. shutdown() saves the ever-seen nick list,
    which such a script never loaded, so on exit it overwrote the live
    list (data/chat/<persona>/irc_seen.json) with an empty one. The
    handler is now registered with the rest of the bot's startup.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)