aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-03-09 23:48:32 +0100
committerKim Alvefur <zash@zash.se>2014-03-09 23:48:32 +0100
commitf74e377a23600b3284f2cc9c4676c9836bae9d89 (patch)
treebfeb64317bdac3d8e975d00d1ab26d3b7e340ce2 /util
parentb438e60d17b5103114ff9e187d171960d88259c9 (diff)
parent9833b51da4e36251d94290577b504c9f8140d64d (diff)
downloadprosody-f74e377a23600b3284f2cc9c4676c9836bae9d89.tar.gz
prosody-f74e377a23600b3284f2cc9c4676c9836bae9d89.zip
Merge 0.10->trunk
Diffstat (limited to 'util')
-rw-r--r--util/pluginloader.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/pluginloader.lua b/util/pluginloader.lua
index b894f527..b9b3e207 100644
--- a/util/pluginloader.lua
+++ b/util/pluginloader.lua
@@ -39,10 +39,10 @@ function load_resource(plugin, resource)
resource = resource or "mod_"..plugin..".lua";
local names = {
- "mod_"..plugin.."/"..plugin.."/"..resource; -- mod_hello/hello/mod_hello.lua
- "mod_"..plugin.."/"..resource; -- mod_hello/mod_hello.lua
- plugin.."/"..resource; -- hello/mod_hello.lua
- resource; -- mod_hello.lua
+ "mod_"..plugin..dir_sep..plugin..dir_sep..resource; -- mod_hello/hello/mod_hello.lua
+ "mod_"..plugin..dir_sep..resource; -- mod_hello/mod_hello.lua
+ plugin..dir_sep..resource; -- hello/mod_hello.lua
+ resource; -- mod_hello.lua
};
return load_file(names);