From c1d2885e9cfdab1ef5b4f0c1daa3b17147c8f604 Mon Sep 17 00:00:00 2001 From: yago Date: Sun, 5 Apr 2015 13:57:10 +0200 Subject: [PATCH] Save plugin name as key --- bot/bot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/bot.lua b/bot/bot.lua index fbf27cf..27d6be5 100644 --- a/bot/bot.lua +++ b/bot/bot.lua @@ -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