Feature Echo main.php in relay after login

Bale

Minion
Since we now auto-hit main.php on login the player does not get to see the first main.php hit when he loads the relay browser. This is a problem. Sometimes that first main.php hit contains useful information like Yellow Exclamation Points and the message to all players about google ads. There may one day be other content that the player loses due to maifa since this page is simply thrown away and the player never gets to see it.

I would like to propose a solution to this problem.

When mafia auto-hits main.php on login, mafia could save the html and set an internal flag. Then, the first time that the relay browser requests main.php KoLmafia could intercept that request, send the previously saved main.php and clear the internal flag that tells it to do this.

Is there anything wrong with this proposal? Is it flawed because of the difficulty of intercepting the relay browsers request for main.php or another reason of which I am unaware?
 
Top