mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +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!";
|
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
|
if os.getenv("WINDIR") then
|
||||||
version = "Windows";
|
version = "Windows";
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue