diff --git a/builtin/mainmenu/tab_online.lua b/builtin/mainmenu/tab_online.lua index c626f84d3..129e939e7 100644 --- a/builtin/mainmenu/tab_online.lua +++ b/builtin/mainmenu/tab_online.lua @@ -25,7 +25,6 @@ local function get_sorted_servers() local merged_serverlist = table.copy(serverlistmgr.servers) - --Special thanks to proller for letting use use the get_lan_servers function. if minetest.settings:get_bool("serverlist_lan") then if core.get_lan_servers then local lan = core.get_lan_servers() diff --git a/src/network/lan.cpp b/src/network/lan.cpp index 60b663b12..8a0f09780 100644 --- a/src/network/lan.cpp +++ b/src/network/lan.cpp @@ -1,22 +1,20 @@ /* -Copyright (C) 2016 proller -*/ +Minetest +Copyright (C) 2024 proller and contributors. -/* -This file is part of Freeminer. - -Freeminer is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. -Freeminer is distributed in the hope that it will be useful, +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. -You should have received a copy of the GNU General Public License -along with Freeminer. If not, see . +You should have received a copy of the GNU Lesser General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "network/lan.h" diff --git a/src/network/lan.h b/src/network/lan.h index 085a597a2..bd49c40f6 100644 --- a/src/network/lan.h +++ b/src/network/lan.h @@ -1,20 +1,20 @@ /* -Copyright (C) 2016 proller +Minetest +Copyright (C) 2024 proller and contributors. -This file is part of Freeminer. - -Freeminer is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. -Freeminer is distributed in the hope that it will be useful, +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. -You should have received a copy of the GNU General Public License -along with Freeminer. If not, see . +You should have received a copy of the GNU Lesser General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index c7f016a8d..8ee438c64 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -1092,11 +1092,6 @@ int ModApiMainMenu::l_do_async_callback(lua_State *L) /******************************************************************************/ -/* -ModApiMainMenu::l_ask_lan_servers, ModApiMainMenu::l_get_lan_servers -by proller , special thanks for letting us use them. -*/ - int ModApiMainMenu::l_ask_lan_servers(lua_State *L) { ServerList::lan_get(); diff --git a/src/script/lua_api/l_mainmenu.h b/src/script/lua_api/l_mainmenu.h index 38d7c50cc..058506436 100644 --- a/src/script/lua_api/l_mainmenu.h +++ b/src/script/lua_api/l_mainmenu.h @@ -60,12 +60,7 @@ private: */ static bool mayModifyPath(std::string path); - //lan - - /* - ModApiMainMenu::l_ask_lan_servers, ModApiMainMenu::l_get_lan_servers - by proller , special thanks for letting us use it. - */ + //lan discovery static int l_ask_lan_servers(lua_State *L); diff --git a/src/server/serverlist.cpp b/src/server/serverlist.cpp index 4ee90b2ea..9b06c35fe 100644 --- a/src/server/serverlist.cpp +++ b/src/server/serverlist.cpp @@ -34,12 +34,6 @@ with this program; if not, write to the Free Software Foundation, Inc., namespace ServerList { -/* -Special thanks to proller for -letting us use the methods lan_get() and lan_fresh() -as well as the lan_adv class. -*/ - static std::string ask_str; lan_adv lan_adv_client; diff --git a/src/server/serverlist.h b/src/server/serverlist.h index 568337278..87518401c 100644 --- a/src/server/serverlist.h +++ b/src/server/serverlist.h @@ -29,11 +29,6 @@ with this program; if not, write to the Free Software Foundation, Inc., namespace ServerList { - /* - Special thanks to proller for - letting us use the methods lan_get() and lan_fresh() - as well as the lan_adv class. - */ extern lan_adv lan_adv_client; void lan_get(); bool lan_fresh();