This commit is contained in:
yago 2014-11-03 22:41:04 +01:00
parent ba8c6d4624
commit 286e0afc18

View File

@ -255,7 +255,7 @@
function save_value( text )
var_name, var_value = string.match(text, "(%a+) (.+)")
if (a == nil or b == nil) then
if (var_name == nil or var_value == nil) then
return "Usage: !set var_name value"
end
config.values[var_name] = var_value