Merge 0.9->trunk
[prosody.git] / plugins / mod_version.lua
index 52d8d290dcec84044383e3db1afb9f811c1602cd..d35103b643266f7d5ef6dcab88951793b1f87e0c 100644 (file)
@@ -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");
-               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