rewrite $bbchar implementation

This commit is contained in:
Martin Michelsen
2023-12-04 19:38:42 -08:00
parent 2360beb77b
commit 330dbecada
10 changed files with 80 additions and 61 deletions
+1 -3
View File
@@ -1029,14 +1029,12 @@ static void server_command_convert_char_to_bb(shared_ptr<Client> c, const std::s
}
try {
s->license_index->verify_bb(tokens[0].c_str(), tokens[1].c_str());
c->pending_bb_save_license = s->license_index->verify_bb(tokens[0].c_str(), tokens[1].c_str());
} catch (const exception& e) {
send_text_message_printf(c, "$C6Login failed: %s", e.what());
return;
}
c->pending_bb_save_username = tokens[0];
// Request the player data. The client will respond with a 61, and the handler
// for that command will execute the conversion
send_get_player_info(c);