From b890ed2501fb74a434b4e60292cf6849051b2487 Mon Sep 17 00:00:00 2001 From: Resike Date: Thu, 19 Sep 2019 16:42:40 +0200 Subject: Update lib_function.lua Allow custom sites for things like going to wowpedia. --- server/src/core/hover/lib_function.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server') diff --git a/server/src/core/hover/lib_function.lua b/server/src/core/hover/lib_function.lua index 57ba1417..96ed0f5e 100644 --- a/server/src/core/hover/lib_function.lua +++ b/server/src/core/hover/lib_function.lua @@ -184,6 +184,9 @@ local function buildDoc(lib) if not doc then return end + if lib.web then + return lang.script(lib.web, doc) + end local version = config.config.runtime.version if version == 'Lua 5.1' then return lang.script('HOVER_DOCUMENT_LUA51', doc) -- cgit v1.2.3