show client player name in sent/received commands

This commit is contained in:
Martin Michelsen
2022-03-07 21:56:35 -08:00
parent 15f978820f
commit 627498dc8a
6 changed files with 20 additions and 9 deletions
+2 -1
View File
@@ -109,7 +109,8 @@ void send_simple_mail(std::shared_ptr<Client> c, uint32_t from_serial_number,
const char16_t* from_name, const char16_t* text);
template <typename TARGET>
void send_text_message_printf(std::shared_ptr<TARGET> t, const char* format, ...) {
__attribute__((format(printf, 2, 3))) void send_text_message_printf(
std::shared_ptr<TARGET> t, const char* format, ...) {
va_list va;
va_start(va, format);
std::string buf = string_vprintf(format, va);