projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 0.9->trunk
[prosody.git]
/
plugins
/
mod_version.lua
diff --git
a/plugins/mod_version.lua
b/plugins/mod_version.lua
index 52d8d290dcec84044383e3db1afb9f811c1602cd..d35103b643266f7d5ef6dcab88951793b1f87e0c 100644
(file)
--- a/
plugins/mod_version.lua
+++ b/
plugins/mod_version.lua
@@
-21,7
+21,7
@@
if not module:get_option("hide_os_type") then
version = "Windows";
else
local os_version_command = module:get_option("os_version_command");
version = "Windows";
else
local os_version_command = module:get_option("os_version_command");
- local ok
pposix = pcall(require, "
pposix");
+ local ok
, pposix = pcall(require, "util.
pposix");
if not os_version_command and (ok and pposix and pposix.uname) then
version = pposix.uname().sysname;
end
if not os_version_command and (ok and pposix and pposix.uname) then
version = pposix.uname().sysname;
end