Oh! That is a very good point. If either of those is enabled and there is a Chateau, it should rest there instead. That's just good sense.
I know mafia uses Chateau with the "rest" command by default (restUsingChateau is the setting), so unless the script is using a direct URL it could be handled automatically.