From cd5863fcde65b188a8a025babb684536515c11d1 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 13 Oct 2025 22:02:44 -0700 Subject: [PATCH] fix $edit for names with spaces --- src/ChatCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 0630a132..8e5c3405 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -985,7 +985,7 @@ ChatCommandDefinition cc_edit( p->disp.visual.section_id = secid; } } else if (tokens.at(0) == "name") { - vector orig_tokens = phosg::split(a.text, ' '); + vector orig_tokens = phosg::split(a.text, ' ', 1); p->disp.name.encode(orig_tokens.at(1), p->inventory.language); } else if (tokens.at(0) == "npc") { if (tokens.at(1) == "none") {