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 {