Save plugin name as key

This commit is contained in:
yago 2015-04-05 13:57:10 +02:00
parent 4b0cecec64
commit c1d2885e9c

View File

@ -212,7 +212,7 @@ function load_plugins()
for k, v in pairs(_config.enabled_plugins) do
print("Loading plugin", v)
local t = loadfile("plugins/"..v..'.lua')()
table.insert(plugins, t)
plugins[v] = t
end
end