- Code-Optimierung

- Tabellen als Rückgabewerte von Plugins werden nicht mehr unterstützt
This commit is contained in:
Andreas Bielawski
2016-08-07 20:45:51 +02:00
parent 3740ccc497
commit 8c97cf4637
9 changed files with 37 additions and 63 deletions

View File

@ -11,7 +11,6 @@ URL = require('socket.url')
json = require("dkjson")
pcall(json.use_lpeg)
serpent = require("serpent")
bindings = require('otouto.bindings')
redis = (loadfile "./otouto/redis.lua")()
mimetype = (loadfile "./otouto/mimetype.lua")()
OAuth = require "OAuth"
@ -608,7 +607,7 @@ function plugins_names()
for k, v in pairs(scandir("otouto/plugins")) do
-- Ends with .lua
if (v:match(".lua$")) then
table.insert(files, v)
files[#files+1] = v
end
end
return files