Merge pull request #1025 from diath/fix_ignore_list

Fix saving ignore list and whitelist
This commit is contained in:
Konrad Kuśnierz 2019-03-31 10:29:42 +02:00 committed by GitHub
commit e244ba4775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1202,15 +1202,15 @@ function loadCommunicationSettings()
local ignoreNode = g_settings.getNode('IgnorePlayers') local ignoreNode = g_settings.getNode('IgnorePlayers')
if ignoreNode then if ignoreNode then
for i = 1, #ignoreNode do for _, player in pairs(ignoreNode) do
table.insert(communicationSettings.ignoredPlayers, ignoreNode[i]) table.insert(communicationSettings.ignoredPlayers, player)
end end
end end
local whitelistNode = g_settings.getNode('WhitelistedPlayers') local whitelistNode = g_settings.getNode('WhitelistedPlayers')
if whitelistNode then if whitelistNode then
for i = 1, #whitelistNode do for _, player in pairs(whitelistNode) do
table.insert(communicationSettings.whitelistedPlayers, whitelistNode[i]) table.insert(communicationSettings.whitelistedPlayers, player)
end end
end end