summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-23 21:12:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-24 18:14:46 (GMT)
commit442420335b9533b2a43c6e3f09758a94af045a84 (patch)
tree3fa350e115340f7db4dfbf1a4aa5845bf4a724c5 /Sluift/example.lua
parentf0142e0ea71a1f89b8c46ab6bde7e188c0bc79f4 (diff)
downloadswift-contrib-442420335b9533b2a43c6e3f09758a94af045a84.zip
swift-contrib-442420335b9533b2a43c6e3f09758a94af045a84.tar.bz2
Added initial version of Sluift.
Diffstat (limited to 'Sluift/example.lua')
-rw-r--r--Sluift/example.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/Sluift/example.lua b/Sluift/example.lua
new file mode 100644
index 0000000..4083848
--- /dev/null
+++ b/Sluift/example.lua
@@ -0,0 +1,6 @@
+require "sluift"
+
+c = sluift.connect(os.getenv("SWIFT_CLIENTTEST_JID"), os.getenv("SWIFT_CLIENTTEST_PASS"))
+v = c:get_version("swift.im")
+print(v["name"], v["version"], v["os"])
+c:disconnect()