From 10589985509d55258b2b3a18c0f349981e6a230f Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 28 Dec 2023 19:39:44 -0800 Subject: [PATCH] fix $password command --- src/ChatCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 66dfcb9a..0b0b0808 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -937,7 +937,7 @@ static void server_command_password(shared_ptr c, const std::string& arg check_is_leader(l, c); if (!args[0]) { - l->password[0] = 0; + l->password.clear(); send_text_message(l, "$C6Game unlocked"); } else {