diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-23 21:12:18 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-24 18:14:46 (GMT) |
commit | 442420335b9533b2a43c6e3f09758a94af045a84 (patch) | |
tree | 3fa350e115340f7db4dfbf1a4aa5845bf4a724c5 /Sluift/example.lua | |
parent | f0142e0ea71a1f89b8c46ab6bde7e188c0bc79f4 (diff) | |
download | swift-contrib-442420335b9533b2a43c6e3f09758a94af045a84.zip swift-contrib-442420335b9533b2a43c6e3f09758a94af045a84.tar.bz2 |
Added initial version of Sluift.
Diffstat (limited to 'Sluift/example.lua')
-rw-r--r-- | Sluift/example.lua | 6 |
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() |