Mercurial > prosody-modules
comparison mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 977:f178318c9aeb
mod_muc_log_http: remove overlapping imports.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Mon, 08 Apr 2013 01:01:11 +0200 |
parents | 08628703456a |
children | 290c21a5e0ee |
comparison
equal
deleted
inserted
replaced
976:0428009c1127 | 977:f178318c9aeb |
---|---|
1 module:depends("http"); | 1 module:depends("http"); |
2 | 2 |
3 local prosody = prosody; | 3 local prosody = prosody; |
4 local my_host = module:get_host(); | 4 local my_host = module:get_host(); |
5 local tabSort = table.sort; | 5 local tabSort = table.sort; |
6 local tonumber = _G.tonumber; | |
7 local tostring = _G.tostring; | |
8 local strchar = string.char; | 6 local strchar = string.char; |
9 local strformat = string.format; | 7 local strformat = string.format; |
10 local splitJid = require "util.jid".split; | 8 local splitJid = require "util.jid".split; |
11 local config_get = require "core.configmanager".get; | 9 local config_get = require "core.configmanager".get; |
12 local urldecode = require "net.http".urldecode; | 10 local urldecode = require "net.http".urldecode; |
13 local http_event = require "net.http.server".fire_event; | 11 local http_event = require "net.http.server".fire_event; |
14 local data_load, data_getpath = datamanager.load, datamanager.getpath; | 12 local data_load, data_getpath = datamanager.load, datamanager.getpath; |
15 local datastore = "muc_log"; | 13 local datastore = "muc_log"; |
16 local urlBase = "muc_log"; | 14 local urlBase = "muc_log"; |
17 local config = nil; | 15 local config = nil; |
18 local tostring = _G.tostring; | 16 local tostring, tonumber = tostring, tonumber; |
19 local tonumber = _G.tonumber; | |
20 local os_date, os_time = os.date, os.time; | 17 local os_date, os_time = os.date, os.time; |
21 local str_format = string.format; | 18 local str_format = string.format; |
22 local io_open = io.open; | 19 local io_open = io.open; |
23 local themesParent = (module.path and module.path:gsub("[/\\][^/\\]*$", "") or (prosody.paths.plugins or "./plugins") .. "/muc_log_http") .. "/themes"; | 20 local themesParent = (module.path and module.path:gsub("[/\\][^/\\]*$", "") or (prosody.paths.plugins or "./plugins") .. "/muc_log_http") .. "/themes"; |
24 | 21 |