Diff

init.lua @ 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
parent 20:972066e06f4c
child 30:9c96318913f7
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();