summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-02 19:13:28 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-02 19:13:28 (GMT)
commit89f728a37223b3e7cd9cf9d76ce9e77b3dee9460 (patch)
treecbb89a3ede5b7bc946c8c67a11e5aa7ca6812cd6 /Sluift/Examples/Login.lua
parent182dc1c6cbed6ac2bbe297f856650367e0f12ba7 (diff)
downloadswift-89f728a37223b3e7cd9cf9d76ce9e77b3dee9460.zip
swift-89f728a37223b3e7cd9cf9d76ce9e77b3dee9460.tar.bz2
Return client on sluift mutators.
Diffstat (limited to 'Sluift/Examples/Login.lua')
-rw-r--r--Sluift/Examples/Login.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/Sluift/Examples/Login.lua b/Sluift/Examples/Login.lua
index d93e990..c1f42d2 100644
--- a/Sluift/Examples/Login.lua
+++ b/Sluift/Examples/Login.lua
@@ -19,7 +19,6 @@ sluift.debug = os.getenv("SLUIFT_DEBUG") or false
print("Connecting " .. os.getenv("SLUIFT_JID") .. " ...")
c = sluift.new_client(os.getenv("SLUIFT_JID"), os.getenv("SLUIFT_PASS"))
c:set_options({compress = false, tls = false})
-c:connect()
-c:send_presence("")
+c:connect():send_presence("")
print("Connected ...")