Bug - Fixed logout script not being called in --cli mode when a script is passed via the cmd line

Rinn

Developer
I have a scheduled task where I pass a script to kolmafia on the command line in cli mode that doesn't seem to be running my logout script when it quits:

Here's an example of my command line call:
Code:
java -jar kolmafia.jar --CLI script.ash

And the basic contents of the script:
Code:
void main()
{
    cli_execute("login character");
    // Do automation here
    cli_execute("quit");
}

The login script defined in the settings for my character is run correctly, however the logout script is not. It runs fine when I call quit in the cli in gui mode, or if in cli mode without passing a script in.
 

Bale

Minion
May be related to THIS, but I'm sure not sure enough to merge the threads. Both have the symptom of mafia no longer being able to properly log out.
 
Top