plugin modules have 'name' field

This commit is contained in:
chrox
2014-10-09 12:26:52 +08:00
parent 896ad0e8f8
commit a4d5ec6534
4 changed files with 4 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ function PluginLoader:loadPlugins()
package.path = package_path
package.cpath = package_cpath
if ok then
module.name = module.name or "unknownplugin"
module.path = path
table.insert(self.plugins, module)
end