Change the server description after a search (#6074)
authorVincent Glize <vincentglize@hotmail.fr>
Thu, 29 Jun 2017 05:53:44 +0000 (07:53 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 29 Jun 2017 05:53:44 +0000 (07:53 +0200)
builtin/mainmenu/tab_online.lua

index ab23a4b7cd89a3551a41ac922491fe9c2d1099eb..90228b110389f90bdaf7bda8209aa66f90b6dc66 100644 (file)
@@ -295,6 +295,7 @@ local function main_button_handler(tabview, fields, name, tabdata)
                        local first_server = search_result[1]
                        core.settings:set("address",     first_server.address)
                        core.settings:set("remote_port", first_server.port)
+                       gamedata.serverdescription = first_server.description
                end
                return true
        end