Software /
code /
clix
Changeset
34:d4f8fc71d936
clix.lua: Only set config key on valid lines
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 30 May 2010 02:13:05 +0100 |
parents | 33:f1901c9de891 |
children | 35:37540f89d4e2 |
files | clix.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clix.lua Sat May 29 21:13:27 2010 +0100 +++ b/clix.lua Sun May 30 02:13:05 2010 +0100 @@ -46,7 +46,9 @@ end elseif current_account then local k,v = line:match("^(%w+)%s*[:=]%s*(.+)$"); - accounts[current_account or "default"][k] = v; + if k then + accounts[current_account or "default"][k] = v; + end end end