Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor fixes for file/modlist download in mainmenu
  • Loading branch information
sapier authored and sapier committed Apr 9, 2014
1 parent 142e2d3 commit a88c685
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/script/lua_api/l_mainmenu.cpp
Expand Up @@ -387,11 +387,6 @@ int ModApiMainMenu::l_get_modstore_details(lua_State *L)
/******************************************************************************/
int ModApiMainMenu::l_get_modstore_list(lua_State *L)
{
std::string listtype = "local";

if (!lua_isnone(L,1)) {
listtype = luaL_checkstring(L,1);
}
Json::Value mods;
std::string url = "";
try{
Expand Down Expand Up @@ -990,6 +985,9 @@ int ModApiMainMenu::l_download_file(lua_State *L)
lua_pushboolean(L,true);
return 1;
}
} else {
errorstream << "DOWNLOAD denied: " << absolute_destination
<< " isn't a allowed path" << std::endl;
}
lua_pushboolean(L,false);
return 1;
Expand Down

0 comments on commit a88c685

Please sign in to comment.