Software /
code /
verse
Diff
doc/example_component.lua @ 260:7f6df45a3d1f
doc/example*.lua: Update to use new .init() method
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 05 Dec 2011 15:44:17 +0000 |
parent | 151:75016d851648 |
line wrap: on
line diff
--- a/doc/example_component.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_component.lua Mon Dec 05 15:44:17 2011 +0000 @@ -1,9 +1,9 @@ local jid, password = "echo.localhost", "hellohello"; --os.execute("squish --minify-level=none verse"); -require "verse" -require "verse.component" -require "socket" + +require "verse".init("component"); + c = verse.new(verse.logger()) c:add_plugin("version"); c:add_plugin("ping");