From 70ef871a91b6f159b391c7ea874fd9a3ccf18d26 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 11 Nov 2018 15:54:36 +0100 Subject: [PATCH] Only select name --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index d1dc69eb..34c8387d 100644 --- a/server/main.lua +++ b/server/main.lua @@ -70,12 +70,12 @@ end, false) function GetCharacterName(source) -- fetch identity in sync - local result = MySQL.Sync.fetchAll('SELECT * FROM users WHERE identifier = @identifier', + local result = MySQL.Sync.fetchAll('SELECT firstname, lastname FROM users WHERE identifier = @identifier', { ['@identifier'] = GetPlayerIdentifiers(source)[1] }) - if result[1] ~= nil and result[1].firstname ~= nil and result[1].lastname ~= nil then + if result[1] and result[1].firstname and result[1].lastname then if Config.OnlyFirstname then return result[1].firstname else