MUC: Split out handling of normal (un)available presence into its own method
[prosody.git] / plugins / mod_version.lua
index 52d8d290dcec84044383e3db1afb9f811c1602cd..be244beb31fd1c75bd7aa20bcc458056a3d3f3ef 100644 (file)
@@ -1,7 +1,7 @@
 -- Prosody IM
 -- Copyright (C) 2008-2010 Matthew Wild
 -- Copyright (C) 2008-2010 Waqas Hussain
--- 
+--
 -- This project is MIT/X11 licensed. Please see the
 -- COPYING file in the source package for more information.
 --
@@ -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