add remote address to command log messages

This commit is contained in:
Martin Michelsen
2024-04-21 15:19:16 -07:00
parent 245df782b9
commit d08aaef0f8
17 changed files with 266 additions and 168 deletions
+1 -2
View File
@@ -3114,8 +3114,7 @@ static void on_61_98(shared_ptr<Client> c, uint16_t command, uint32_t flag, stri
c->channel.language = player->inventory.language;
c->login->account->save();
string name_str = player->disp.name.decode(c->language());
c->channel.name = string_printf("C-%" PRIX64 " (%s)", c->id, name_str.c_str());
c->update_channel_name();
// 98 should only be sent when leaving a game, and we should leave the client
// in no lobby (they will send an 84 soon afterward to choose a lobby).