[fix] Prevent adding the same cookie again and again.

This commit is contained in:
opi 2015-02-18 14:35:13 +01:00
parent 06be1fa65a
commit b9b6d09769

View file

@ -49,8 +49,10 @@ end
-- Set a cookie
function cook (cookie_str)
if not is_in_table(cookies, cookie_str) then
table.insert(cookies, cookie_str)
end
end
-- Store a message in the flash shared table in order to display it at the