Fixed table.to_string

This commit is contained in:
Cooldude2606
2017-09-03 12:52:43 +01:00
parent e5ddd3586a
commit 072f02716b
2 changed files with 13 additions and 6 deletions

View File

@@ -57,6 +57,7 @@ function table.key_to_str ( k )
end end
function table.to_string( tbl ) function table.to_string( tbl )
if not type(tbl) == 'table' then return {tostring(tbl)} end
local result, done = {}, {} local result, done = {}, {}
for k, v in ipairs( tbl ) do for k, v in ipairs( tbl ) do
table.insert( result, table.val_to_str( v ) ) table.insert( result, table.val_to_str( v ) )

View File

@@ -28,22 +28,25 @@ local preset_ranks = {
Admin={ Admin={
'eissturm', 'eissturm',
'PropangasEddy', 'PropangasEddy',
'mark9064',
'Smou'}, 'Smou'},
Mod={ Mod={
'AcThPaU', 'AcThPaU',
'Alanore', 'Alanore',
'Aquaday', 'Aquaday',
'ayahuasca23',
'cafeslacker', 'cafeslacker',
'CrashKonijn', 'CrashKonijn',
'Drahc_pro', 'Drahc_pro',
'everLord',
'FlipHalfling90', 'FlipHalfling90',
'freek16', 'facere',
'freek18',
'Hobbitkicker', 'Hobbitkicker',
'hud', 'hud',
'Koroto', 'Koroto',
'mark9064', 'matthias60',
'Matthias60',
'MeDDish', 'MeDDish',
'Mindxt20', 'Mindxt20',
'MottledPetrel', 'MottledPetrel',
@@ -55,13 +58,16 @@ local preset_ranks = {
'Sand3r205', 'Sand3r205',
'scarbvis', 'scarbvis',
'steentje77', 'steentje77',
'SuperWinner50',
'tophatgaming123', 'tophatgaming123',
'VR29', 'VR29',
'xenocyber'}, 'xenocyber',
'Ruuyji'},
Donator={ Donator={
'M74132', 'M74132',
'Splicer'}, 'Splicer',
'Nucklesamich'},
Veteran={}, Veteran={},