Software /
code /
prosody
Comparison
core/modulemanager.lua @ 1361:4e56889c33e1
modulemanager: Removed unused function get_module_filename(name)
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 14 Jun 2009 21:06:43 +0500 |
parent | 1360:857034905016 |
child | 1378:d09ecc8ee1ef |
child | 1392:9935ddfd8ccf |
comparison
equal
deleted
inserted
replaced
1360:857034905016 | 1361:4e56889c33e1 |
---|---|
266 else | 266 else |
267 return false, "no-such-method"; | 267 return false, "no-such-method"; |
268 end | 268 end |
269 end | 269 end |
270 | 270 |
271 local _modulepath = { plugin_dir, "mod_", nil, ".lua"}; | |
272 function get_module_filename(name) | |
273 _modulepath[3] = name; | |
274 return t_concat(_modulepath); | |
275 end | |
276 | |
277 ----- API functions exposed to modules ----------- | 271 ----- API functions exposed to modules ----------- |
278 -- Must all be in api.* | 272 -- Must all be in api.* |
279 | 273 |
280 -- Returns the name of the current module | 274 -- Returns the name of the current module |
281 function api:get_name() | 275 function api:get_name() |