mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_version: Use the module API to read configuration options instead of configmanager
This commit is contained in:
parent
1cffdf3339
commit
e051a3cad0
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ module:add_feature(xmlns_version);
|
|||
|
||||
local version = "the best operating system ever!";
|
||||
|
||||
if not require "core.configmanager".get("*", "core", "hide_os_type") then
|
||||
if not module:get_option("hide_os_type") then
|
||||
if os.getenv("WINDIR") then
|
||||
version = "Windows";
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue