diff options
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 578c5cc23..7a4d606de 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -121,7 +121,7 @@ local keywords = { ['bounce'] = { ['get_value'] = function(task) local from = task:get_from(0) - if not from and from[1] and from[1]['user'] then + if not from or not from[1] or not from[1]['user'] then return '_' end if check_bounce(from[1]['user']) then return '_' else return nil end |