forked from github/server
autoseed barfs on blank lines, catch that case
This commit is contained in:
parent
65a163b4d9
commit
21ee84dc65
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue