Discussion: should we revert 0-argument visit_url to not follow redirects?

Theraze

Active member
Would it make starting a fight auto-complete the fight without allowing the user to control it with run_combat() or does that already happen now and manually controlling a triggered fight requires visit_url to the inv_use?
 

Veracity

Developer
Staff member
I’m bumping this. What’s a 7-year necro between friends?

Discussion with Irrat and Katarn makes me wonder why the zero argument version of visit_url() follows redirects, rather than returning an empty buffer and letting KoLmafia send the redirect down to the browser.

I did that - and admitted in this thread that the latter would be the “correct” behavior.

Perhaps it is time to look at it again. Perhaps we can solve the original problem without breaking any scripts.
 
Top