From 71fc272133e26a0a5a67685571759831b1f64995 Mon Sep 17 00:00:00 2001 From: James Osborne Date: Sun, 3 May 2026 18:13:01 -0400 Subject: [PATCH] Allow savechar in proxy sessions --- src/ChatCommands.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index d393b391..e9ae1ee5 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -439,12 +439,14 @@ ChatCommandDefinition cc_bank( }); static asio::awaitable server_command_bbchar_savechar(const Args& a, bool is_bb_conversion) { - // TODO: We could support this in proxy sessions; we'd just have to handle the 61/30 correctly - a.check_is_proxy(false); + // Allow $savechar in proxy sessions for character migration/testing. + // Keep $bbchar blocked in proxy sessions because it writes to BB account slots. + if (is_bb_conversion) { + a.check_is_proxy(false); + } a.check_is_game(false); auto s = a.c->require_server_state(); - auto l = a.c->require_lobby(); if (is_bb_conversion && is_ep3(a.c->version())) { throw precondition_failed("$C6Episode 3 players\ncannot be converted\nto BB format");