Done Don't default /sendhtmlpage to 0th connection

Felucia

Robot Empress
is a Forum Moderatoris a Community Contributoris a Battle Simulator Moderatoris a Metagame Resource Contributor Alumnus
Currently, /sendhtmlpage sends the htmlpage to only one connection, that being the last one that used /join view-bot-[botname]-[pagename]. However, many bot coders attach the html page feature to commands rather than buttons, meaning there will be a html page sent without a request that the server knows off.

In this event, the code defaults to the 0th connection, which causes problems when users have multiple connections (because they're on multiple devices or because PS has been seemingly randomly cloning connections lately) and want to request the page on a specific one. There's two solutions I can think of here:
  • Send the page to all connections (easier to implement)
  • Send the page to the last connection that sent a message (harder to implement, but generally ensures that the page will only be sent to whichever connection used the command that requested the page).
sorry if this counts as a bug report, but to my understanding this is a change to what is technically intended behaviour, even if it doesn't result in perfect execution
 
Huh, this seems like a bug, and it especially seems like a bug I thought we fixed long ago... Worrying.
 
Back
Top