From 22cab77cc47d08152d3608e560a56d910a54462c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 20 Nov 2016 15:28:03 +0000 Subject: [PATCH] [Minor] Store replies for local networks as well --- src/plugins/lua/replies.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index cb34d4fa7..b5c7c6ada 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -86,7 +86,8 @@ local function replies_set(task) end end -- If sender is unauthenticated return - if task:get_user() == nil then + local ip = task:get_ip() + if task:get_user() == nil and not (ip and ip:is_local()) then return end -- If no message-id present return -- 2.39.5