From 36a39e91c8aac8c3ab06ecc87684e3ea53626277 Mon Sep 17 00:00:00 2001 From: PRESFIL Date: Mon, 25 Aug 2025 16:30:16 +0000 Subject: [PATCH] doc(lua): insert_lua_method: Document, that target always passed --- lua/rtorrent.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/rtorrent.lua b/lua/rtorrent.lua index 238e5c65..b8b97491 100644 --- a/lua/rtorrent.lua +++ b/lua/rtorrent.lua @@ -64,6 +64,7 @@ end -- @param func_name string name of global lua-function -- @param ... string list of rtorrent's arguments like `(d.name)` to be -- passed to lua-function when it be called by rtorrent +-- NOTE: first one is always target, may be empty string rtorrent["insert_lua_method"] = function (name, func_name, ...) local args = {} for i, v in ipairs({...}) do