Software /
code /
verse
Changeset
259:05acf08d2e98
Merge with Zash
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 05 Dec 2011 15:39:05 +0000 |
parents | 257:816b8ccb3082 (diff) 258:94b1d9863dd9 (current diff) |
children | 260:7f6df45a3d1f |
files | init.lua |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/init.lua Mon Dec 05 16:24:13 2011 +0100 +++ b/init.lua Mon Dec 05 15:39:05 2011 +0000 @@ -19,6 +19,17 @@ verse.plugins = {}; +function verse.init(...) + for i=1,select("#", ...) do + local ok = pcall(require, "verse."..select(i,...)); + if not ok then + error("Verse connection module not found: verse."..select(i,...)); + end + end + return verse; +end + + local max_id = 0; function verse.new(logger, base)