Software /
code /
verse
Changeset
23:33e346283135
verse: Have verse.new() accept a prototype table on which to base the connection
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 04 Dec 2009 03:28:40 +0000 |
parents | 22:e6fad7c411fe |
children | 24:db0ed736785a |
files | init.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/init.lua Fri Dec 04 03:23:06 2009 +0000 +++ b/init.lua Fri Dec 04 03:28:40 2009 +0000 @@ -14,8 +14,8 @@ verse.plugins = {}; -function verse.new() - local t = {}; +function verse.new(base) + local t = base or {}; t.id = tostring(t):match("%x*$"); t.logger = logger.init(t.id); t.events = events.new();