Diff

init.lua @ 45:50a2e4fb0a16

verse: Add verse.quit() to exit the event loop
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 Jan 2010 17:42:57 +0000
parent 44:37396504de5f
child 53:091ff10eb51c
line wrap: on
line diff
--- a/init.lua	Wed Jan 06 17:42:37 2010 +0000
+++ b/init.lua	Wed Jan 06 17:42:57 2010 +0000
@@ -28,6 +28,10 @@
 	return server.loop();
 end
 
+function verse.quit()
+	return server.setquitting(true);
+end
+
 verse.logger = logger.init;
 
 function verse.set_logger(logger)