autoseed barfs on blank lines, catch that case

This commit is contained in:
Enno Rehling 2016-05-15 10:35:23 +02:00
parent 65a163b4d9
commit 21ee84dc65
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ local function read_players()
local str = input:read("*line") local str = input:read("*line")
if str==nil then break end if str==nil then break end
local email, race, lang = str:match("([^ ]*) ([^ ]*) ([^ ]*)") local email, race, lang = str:match("([^ ]*) ([^ ]*) ([^ ]*)")
if string.char(string.byte(email, 1))~='#' then if email and string.char(string.byte(email, 1))~='#' then
table.insert(players, { race = race, lang = lang, email = email }) table.insert(players, { race = race, lang = lang, email = email })
end end
end end

View File

@ -1,3 +1,3 @@
#define VERSION_MAJOR 3 #define VERSION_MAJOR 3
#define VERSION_MINOR 8 #define VERSION_MINOR 8
#define VERSION_BUILD 9 #define VERSION_BUILD 10