Software /
code /
prosody
Comparison
plugins/mod_version.lua @ 1645:8ce5da8d24a0
mod_version: Use the module API to read configuration options instead of configmanager
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 07 Aug 2009 18:27:49 +0500 |
parent | 1523:841d61be198f |
child | 1646:21bcc7b8b4d8 |
comparison
equal
deleted
inserted
replaced
1644:002af1bb797a | 1645:8ce5da8d24a0 |
---|---|
14 | 14 |
15 module:add_feature(xmlns_version); | 15 module:add_feature(xmlns_version); |
16 | 16 |
17 local version = "the best operating system ever!"; | 17 local version = "the best operating system ever!"; |
18 | 18 |
19 if not require "core.configmanager".get("*", "core", "hide_os_type") then | 19 if not module:get_option("hide_os_type") then |
20 if os.getenv("WINDIR") then | 20 if os.getenv("WINDIR") then |
21 version = "Windows"; | 21 version = "Windows"; |
22 else | 22 else |
23 local uname = io.popen("uname"); | 23 local uname = io.popen("uname"); |
24 if uname then | 24 if uname then |