diff options
Diffstat (limited to 'util/startup.lua')
-rw-r--r-- | util/startup.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/startup.lua b/util/startup.lua index 545b6ae7..8be54884 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -277,6 +277,11 @@ function startup.init_global_state() startup.detect_platform(); startup.detect_installed(); _G.prosody = prosody; + + -- COMPAT Lua < 5.3 + if not math.type then + require "util.mathcompat" + end end function startup.setup_datadir() |