diff --git a/bot/bot.lua b/bot/bot.lua index ada6ec9..ab9ada8 100644 --- a/bot/bot.lua +++ b/bot/bot.lua @@ -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