Mercurial > prosody-modules
diff mod_statistics/mod_statistics.lua @ 3414:66bda434d476
mod_statistics: Update 'top' to (hopefully) work with Prosody 0.11/Lua 5.2
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 23 Dec 2018 11:00:38 +0000 |
| parents | d7c014f91189 |
| children | 54e84ec12c82 |
line wrap: on
line diff
--- a/mod_statistics/mod_statistics.lua Sat Dec 22 19:02:21 2018 +0100 +++ b/mod_statistics/mod_statistics.lua Sun Dec 23 11:00:38 2018 +0000 @@ -131,7 +131,7 @@ if command == "top" then local dir = module:get_directory(); package.path = dir.."/?.lua;"..dir.."/?.lib.lua;"..package.path; - local prosodytop = require "prosodytop"; + local prosodytop = module:require "prosodytop"; prosodytop.run(); end end
