Software /
code /
prosody
Comparison
util/pluginloader.lua @ 8382:e5d00bf4a4d5
util: Various minor changes to please [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Nov 2017 05:42:32 +0100 |
parent | 7115:805d068d2fd5 |
child | 10205:ff8de86b75f0 |
comparison
equal
deleted
inserted
replaced
8381:7f6184474149 | 8382:e5d00bf4a4d5 |
---|---|
3 -- Copyright (C) 2008-2010 Waqas Hussain | 3 -- Copyright (C) 2008-2010 Waqas Hussain |
4 -- | 4 -- |
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 -- luacheck: ignore 113/CFG_PLUGINDIR | |
8 | 9 |
9 local dir_sep, path_sep = package.config:match("^(%S+)%s(%S+)"); | 10 local dir_sep, path_sep = package.config:match("^(%S+)%s(%S+)"); |
10 local plugin_dir = {}; | 11 local plugin_dir = {}; |
11 for path in (CFG_PLUGINDIR or "./plugins/"):gsub("[/\\]", dir_sep):gmatch("[^"..path_sep.."]+") do | 12 for path in (CFG_PLUGINDIR or "./plugins/"):gsub("[/\\]", dir_sep):gmatch("[^"..path_sep.."]+") do |
12 path = path..dir_sep; -- add path separator to path end | 13 path = path..dir_sep; -- add path separator to path end |