From 3d87d4f60a0a121839dd732f03dbbd5ea5fbcc7a Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 19 Feb 2021 18:09:57 -0800 Subject: [PATCH] name the closed game --- xwords4/wasm/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xwords4/wasm/main.c b/xwords4/wasm/main.c index d6635b4c4..405c922af 100644 --- a/xwords4/wasm/main.c +++ b/xwords4/wasm/main.c @@ -821,7 +821,12 @@ main_onGameMessage( Globals* globals, XP_U32 gameID, char key[32]; formatGameKeyInt( key, sizeof(key), gameID ); if ( have_stored_value( key ) ) { - call_alert( "Dropping packet for closed game" ); + formatNameKey( key, sizeof(key), gameID ); + const char* name = get_stored_value( key ); + char buf[128]; + snprintf( buf, sizeof(buf), "Dropping packet for closed game \"%s\"", name ); + free( (void*)name); + call_alert( buf ); } else { XWStreamCtxt* stream = mem_stream_make_raw( MPPARM(globals->mpool) globals->vtMgr );