Software /
code /
prosody
Changeset
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 |
parents | 1644:002af1bb797a |
children | 1646:21bcc7b8b4d8 |
files | plugins/mod_version.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_version.lua Sat Aug 08 22:09:59 2009 +0100 +++ b/plugins/mod_version.lua Fri Aug 07 18:27:49 2009 +0500 @@ -16,7 +16,7 @@ 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